Xor Operator

For Boolean expressions, returns “true” if they have different values. For integer expressions, does a bitwise XOR operation.

Syntax

expression_1 Xor expression_2

Parts

expression_1
A Boolean or integer expression.
expression_2
A Boolean or integer expression.

Instructions

If expression_1 is And expression_2 is The result is
TrueTrueFalse
TrueFalseTrue
FalseTrueTrue
FalseFalseFalse
If the bit in expression_1 is And the bit in expression_2 is The bit in the result is
110
101
011
000

Examples

TODO2

See also