Logical Exclusive Or Operator

Logical Or Operator

The logical exclusive or (abreviated as xor) operator returns true if left or right side evaluates to true, but returns false if both evaluate to true. For example, if a waiter in a resteraunt asks you if you want orange juice or coffee they really are asking an exclusive-or type question. You can have one or the other, but not both.

Exclusive Or Truth Table