Exclusive or, exclusive disjunction, exclusive alternation, logical non-equivalence, or logical inequality is a logical operator whose negation is the logical biconditional. With two inputs, XOR is true if and only if the inputs differ (one is true, one is false). With multiple inputs, XOR is true if and only if the number of true inputs is odd.
It gains the name "exclusive or" because the meaning of "or" is ambiguous when both operands are true. XOR excludes that case. Some informal ways of describing XOR are "one or the other but not both", "either one or the other", and "A or B, but not A and B".
It is symbolized by the prefix operator
J
{\displaystyle J}
: 16 and by the infix operators XOR (, , or ), EOR, EXOR,
∨
˙
{\displaystyle {\dot {\vee }}}
,
∨
¯
{\displaystyle {\overline {\vee }}}
,
∨
_
{\displaystyle {\underline {\vee }}}
, ⩛,
⊕
{\displaystyle \oplus }
,
↮
{\displaystyle \nleftrightarrow }
, and
≢
{\displaystyle \not \equiv }
.
View More On Wikipedia.org