xor (mutually exclusive "or")

Navigation:  Appendices > Macro Language > Operators >

xor (mutually exclusive "or")

Previous pageReturn to chapter overviewNext page

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 updated on 01-Nov-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?xor2.htm