The OR Operation
Weekend Plans
You'll go swimming if: it's Saturday OR it's above 25°C. Today is Monday and it's 28°C. Will you go swimming?
Identify statement P: P = "It's Saturday" → Today is Monday, so P is **False** = P = F
Identify statement Q: Q = "It's above 25°C" → 28°C > 25°C, so Q is **True** = Q = T
Apply OR operation: $P \vee Q$ = F OR T = **True** (one condition is met!) = P OR Q = T
Interpret the result: Since OR returns True, the overall condition is satisfied = Yes, go swimming!
Answer: Yes! You'll go swimming because at least one condition is true (it's above 25°C).
Access Control
A door opens if the person has a key card OR knows the security code. Emma has no key card and doesn't know the code. Can she open the door?
Define statement P: P = "Has key card" → Emma has no key card, P = **False** = P = F
Define statement Q: Q = "Knows security code" → Emma doesn't know it, Q = **False** = Q = F
Apply OR operation: $P \vee Q$ = F OR F = **False** = P OR Q = F
State the conclusion: Both conditions are false, so OR returns false = Door stays locked
Answer: No, Emma cannot open the door. OR only returns false when BOTH inputs are false.
Compound OR Expression
Evaluate: (2 > 5) OR (3 = 3) OR (10 < 7)
Evaluate first expression: Is 2 > 5? No, 2 is less than 5 = F
Evaluate second expression: Is 3 = 3? Yes, they are equal = T
Evaluate third expression: Is 10 < 7? No, 10 is greater than 7 = F
Combine with OR: F OR T OR F = T (since at least one is True) = T
Answer: True. Even though two statements are false, one is true, so the entire OR expression is true.
Nested Logic
Evaluate: (T AND F) OR (T OR F)
Evaluate left parenthesis: T AND F = F (AND requires both true) = (T AND F) = F
Evaluate right parenthesis: T OR F = T (OR needs at least one true) = (T OR F) = T
Combine results with OR: F OR T = T = F OR T = T
State final answer: Since F OR T = T, the expression is True = True
Answer: True. The expression simplifies to F OR T, which equals T.
Mistake: Thinking OR means exactly one must be true
Why: This confuses OR with XOR (exclusive or). In standard OR, if both are true, the result is still true.
Correct: OR returns true if at least one input is true - this includes when both are true! T OR T = T.
Mistake: Confusing OR with AND
Why: AND requires ALL inputs to be true. OR only requires ONE input to be true.
Correct: Remember: AND is strict (all must be true), OR is lenient (any one is enough).
Mistake: Forgetting that F OR F = F
Why: Some students think OR always gives true, but it needs at least one true input.
Correct: The ONLY way OR returns false is when ALL inputs are false.
Search Engines
When you search "cats OR dogs", the search engine finds pages containing either word (or both).
Searching "pizza OR pasta" on a restaurant website shows all items with pizza, pasta, or both.
Smart Home Systems
Automated homes use OR logic to trigger actions when any of several conditions are met.
Lights turn on automatically if: motion is detected OR it's after sunset OR you press a button.
The OR operation returns **true** if **at least one** input is true
OR only returns **false** when **all** inputs are false
Truth table: T OR T = T, T OR F = T, F OR T = T, F OR F = F
Symbol: $\vee$ in math, OR in words, || in programming
Real-world examples: search engines, safety systems, smart devices
Q: What's the difference between OR and XOR?
A: OR (inclusive or) is true when at least one input is true, including when both are true. XOR (exclusive or) is true when exactly one input is true, not both. So T OR T = T, but T XOR T = F.
Q: Why is T OR T equal to T?
A: OR asks: "Is at least one statement true?" When both are true, the answer is definitely yes! Think of it this way: "I'll be happy if I get ice cream OR cake." Getting both doesn't make you unhappy!
Q: How many OR operations can I chain together?
A: As many as you want! A OR B OR C OR D... is true if ANY of the inputs is true. It's only false if ALL inputs are false.
The OR Operation
1 / 12
The OR Operation
Learn how the OR logical operation works and when the result is true.