Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Operators

xor (mutually exclusive "or")

Scroll Prev Up Next More

The xor operator takes 2 boolean expressions and returns true if only one of the 2 expression is true, and false otherwise.

bIsLife = bCanHaveYourCake xor bCanEatYourCake // not both

Note that the or operator does not return true if both expressions are true. If you want to use an operator in the context one or the other or both, then you should use the regular or, the or operator.

 


Topic 122100, last updated on 18-Apr-2020