GCSE · Computer Science · AQA · Spec 8525
Greater than or equal to (relational operator)
You need at least 40 to pass. You score exactly 40. Pass? Obviously. And ≥ is how a program agrees with you.
Computer Science · Relational operators
True or False? Sort them.
Does each condition evaluate to True or to False?
Still to sort
Evaluates to True (0)
The left value is bigger than the right, or equal to it.
Where the line is: Equal values land here — that's the 'or equal to' part.
Evaluates to False (0)
The left value is smaller than the right.
Where the line is: Only smaller lands here. 'Nearly equal' is still smaller.
Eight conditions. Some are traps. Commit before you read the reason.
Computer Science · Algorithms
Countdown: does it print 1?
Step through the loop and watch the condition column.
Before you step through: will this loop print 1, or stop after printing 2?
1 n ← 32 WHILE n ≥ 13 OUTPUT n4 n ← n - 15 ENDWHILE6 OUTPUT "Lift off!"
| n | n ≥ 1 |
|---|---|
| 3 | – |
Output
Step 1: n starts at 3.
Keep an eye on the n ≥ 1 column each time line 2 is checked.
Different languages may use different symbols to represent the greater than or equal to operator.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- ≥ means 'greater than or equal to'. It's a relational operator: it compares two values.
- Every comparison with ≥ gives a Boolean result — True or False, nothing else.
- a ≥ b is True when a is bigger than b, and also when a equals b.
Have a goYour friend insists 12 ≥ 12 is False, "because 12 isn't bigger than 12". They sound very sure. Are they right?
No — 12 ≥ 12 is True.
Your friend is reading ≥ as plain 'greater than'. The 'or equal to' half means two equal values make it True.
- It's False only when a is smaller than b. Close doesn't count: 39.9 ≥ 40 is False.
- Order matters, so read left to right: 9 ≥ 5 is True, but 5 ≥ 9 is False.
Have a goIs 20 ≥ 3 True or False? Now swap the two numbers round. What happens to the answer?
20 ≥ 3 is True; 3 ≥ 20 is False.
Swapping the values changes the question being asked, so the result flips — the order of the values is part of the condition.
- With negative numbers, bigger means further right on the number line, so −3 ≥ −5 is True.
- Wording like 'at least', 'or more' or 'or older' usually calls for ≥, because the boundary value itself counts.
Have a goA shop gives free delivery on orders of £50 or more. Which operator should its program use, and does an order of exactly £50 get free delivery?
≥ — and yes, a £50 order gets free delivery.
'Or more' means £50 itself counts. Using > instead would wrongly charge the customer who spent exactly £50.
- Inside a loop such as WHILE n ≥ 1, the pass where n is exactly 1 still runs.
- Different languages may use different symbols for the operator, such as ≥ or >=; the meaning is the same.
- Use ≥ in your own programs, and be able to interpret it when you meet it in an algorithm.
The big picture
≥ means 'greater than or equal to'. A comparison like a ≥ b gives a Boolean result: True when a is bigger than b or equal to it, and False only when a is smaller. The boundary value counts, so 40 ≥ 40 is True. Different languages may use different symbols for the operator, such as ≥ or >=, but the meaning never changes.
Key points
Worked example
Problem
A game gives the player a bonus life when their score is 1000 or more. Write the condition, then decide what happens when score is 999, 1000 and 1250.
⚠ Watch out
Treating ≥ as > and calling 40 ≥ 40 False. Equal values count, so it's True.
Memory hook
The line under ≥ is half an equals sign — it's the 'or equal to' bit. See the line, let the equal value in.
Check yourself
A club admits members who are at least 16. Write the condition. Is it True for age 16? For age 15.5? Now write it again using the other spelling, ≥ or >=.
Flashcards
(10)What does the operator ≥ mean?
What kind of result does a ≥ comparison give?
On a number line, how do you show every x where x ≥ 40?
Do all languages write greater than or equal to the same way?
Does a >= b mean something different from a ≥ b?
Is ≥ a comparison or does it store a value?
Is −2 ≥ −6 True or False?
Does 5 ≥ 9 mean the same as 9 ≥ 5?
Which words in a requirement usually point to ≥?
In WHILE n ≥ 1, does the loop body run when n is 1?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
- Convert character code to character
- Convert character to character code
- Correcting errors
- Data validation routines
- Equal to (relational operator)
- Greater than (relational operator)
- Identifying and categorising errors
- Indefinite (condition-controlled) iteration
- Integer / real to string conversion
- Integer data type
- Integer division and remainder
- Iteration
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 27 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.