Xor (operator)

Applies Exclusive OR logic to two Boolean operands.
The result is True if either operand is true, but not both.

Syntax

operand1 Xor operand2
operand1 = first operand
operand2 = second operand

Remarks

Returns #ERR! if the operands cannot be understood as Booleans.

Examples

True xor True = False
True xor False = True
False xor True = True
False xor False = False

Classification

Logic