oh, then yes,

Code:
 if(x && y) 
for x and y true

Code:
 if(x || y) 
for x or y true

Code:
 if(!x && !y) 
for x and y false

or write a macro for checking if you want shorter than that