AQA · GCSE · Computer Science
Course version: 8525 · Version from Sept 2020
Boolean operations in a programming language: OR.
The Boolean operator OR combines two conditions and yields True when at least one of them is True; it is False only when both are False.
Checked against the AQA 8525 specification (opens in a new tab) on .
- Point 4 of 4
Study notes
From the checked teaching notes for this specification point.
The idea
The Boolean operator OR combines two conditions and yields True when at least one of them is True; it is False only when both are False. In a program, an expression such as isWeekend OR isHoliday evaluates each side and combines them, so the result is True on a Saturday even if it is not a holiday. A truth table for A OR B has three True rows and a single False row at A = False, B = False. OR is used when any one of several acceptable conditions should trigger an action, for example flagging a message if a score is below ten OR a deadline has passed. Contrast this with AND, which needs both True. In a multiple-choice question, evaluate each operand, apply the OR rule, and reject options that describe AND behaviour.
What earns the marks
- OR returns True when at least one operand is True.
- OR returns False only when both operands are False.
- A truth table for A OR B has exactly one False outcome, at A = False and B = False.
- OR is used when any one of several conditions should trigger an action.
- Evaluating an expression means testing each operand and then combining with the OR rule.
Common mistakes and how to put them right
Assuming OR returns False when one operand is True.
Put it right by stressing only both False gives False.
Confusing OR with AND; correct by comparing their truth tables.
Treating OR as exclusive so that both True gives False.
Put it right by noting OR is inclusive here.
Exam tips
- Identify the single False row of the OR truth table to check your answer.
- Test each operand separately before combining with OR.
- Reject options that describe AND behaviour instead of OR.
Try the lesson
The start of the Boolean operations in a programming language: OR. lesson, made from checked teaching notes for this specification point.
Have a go first
A program evaluates the expression False OR True. What value does the expression produce?
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge
Test your understanding of Boolean operations in a programming language: OR.
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
A week of Premium from your first lesson · Then the free plan continues · No card, no charge