⊻ (xor)
The logical exclusive disjunction (xor) operator.
Syntax
-
p ⊻ q
-
p
andq
are 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)