Exclusive disjunction

220px Venn diagram of 
35px|OR but not 35px|AND is 35px|XOR 220px Venn diagram of 
40px  40px  40px
Exclusive disjunction (also called exclusive or, XOR) is a logic operation on two values. It is often represented by the symbol  (or ). It will be true, if exactly one of the two values is true. Otherwise, it will be false. This also means that the result of 'XOR' will be true precisely both the values are different. Same values will result in a false.

The best way to remember a XOR operation is: "One or the other, but not both".

Because of that, this is different from inclusive disjunction.

 Truth table 
The truth table of  (also written as , , or ) is as follows:

+ p q ⊕ F  F  F F  T  T T  F  T T  T F

 Related pages 

 Boolean algebra
 Logical conjunction
 XOR gate

 References 

Category:Logic
Category:Logical connectives