The OR Operation
Learn how the OR logical operation works and when the result is true.
Definition
The OR operation (also called logical disjunction) combines two statements and returns true if at least one of the statements is true.
We write OR using these symbols:
- (mathematical notation)
- OR (written out)
- || (programming)
Truth Table for OR:
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
The key insight: OR is only false when both inputs are false. If even one input is true, the result is true!
Try it now
What is the result of T OR F?
Interactive Visual
Truth Table
P ∨ Q
| P | Q | P ∨ Q |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
T= TrueF= False
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
16 problemsProblem 1 of 16
Easy
What is the result of T OR F?
Glossary
- OR operation
- A logical operation that returns true if at least one input is true
- Disjunction
- The mathematical name for the OR operation
- Truth table
- A table showing all possible input combinations and their outputs
- Inclusive OR
- Standard OR that's true when one or both inputs are true
- XOR (Exclusive OR)
- A variant that's true only when exactly one input is true