Is there a way to put a condition that return true only if one of the two component return true?

BOOL var1
BOOL var2

something shorter than if((var1 && !var2) || (!var1 && var2))

Thank you

Edit
Report