OR operator (||) inside If statement not working. Why?

status = single

if(status.contentEquals((‘Single’) || (‘Divorced’))){
do something
}

This is working perfectly when I put
if(status.contentEquals(‘Single’)){
do something
}

but not when I put an OR operator. Why?

if(status.contentEquals('Single') || status.contentEquals('Divorced')) { 
 ...
}
1 Like

Yes! Thank you so much!