⊻ (xor)
The logical exclusive disjunction (xor) operator.
Syntax
-
p ⊻ q-
pandqare booleans
-
Description
⊻ is the logical exclusive disjunction operator. The truth table for ⊻ is as follows:
|
qp
|
false | true |
|---|---|---|
| false | false | true |
| true | true | false |
⊻ is a binary operator implemented by the xor function.
See also
-
Logical operators (list)