Logical Exclusive or Operator

Logical Or Operator

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

Exclusive Or Truth Table