Skip to main content
Engineering LibreTexts

2.1.H Exclusive or

  • Page ID
    9837
  • Finally, we turn to the exclusive or operator. The English word ‘or’ is actually somewhat ambiguous. The two operators ⊕ and ∨ express the two possible meanings of this word. The proposition ∨ can be expressed unambiguously as “or q, or both”, while ⊕ q stands for “or q, but not both”. If a menu says that you can choose soup or salad, it doesn’t mean that you can have both. In this case, ‘or’ is an exclusive or. On the other hand, in “You are at risk of heart disease if you smoke or drink”, the or is inclusive since you certainly don’t get off the hook if you both smoke and drink. In theoretical computer science and mathematics, the word ‘or’ is always taken in the inclusive sense of ∨ q.