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? Of course — and ≥, 'greater than or equal to', is how a program agrees with you.
Try it yourself
True or False?
Put each condition in the column for what it evaluates to.
Still to sort
Evaluates to True (0)
The left value is bigger than the right, or exactly equal to it.
Where the line is: Equal values land here. That's the whole point of the 'or equal to' part.
Evaluates to False (0)
The left value is smaller than the right — even if only by a tiny amount.
Where the line is: 'Nearly equal' is not equal. Anything below the right-hand value lands here.
Each card is a condition. Decide what it evaluates to before you read why.
≥ inside an algorithm
Trace the countdown
Step through the code one line at a time 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.
Press Next to run one line at a time. Say the condition out loud each time: 'is n bigger than, or equal to, 1?'
AQA's pseudo-code writes this operator as the single symbol ≥.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- ≥ is the relational operator 'greater than or equal to'. It compares two values and the result is True or False.
- a ≥ b is True when a is bigger than b, and also when a is equal to b. It's False only when a is smaller than b.
- Requirements worded 'at least', 'or more' or 'or older' usually call for ≥, because the boundary value itself counts.
- Different languages can write it differently: ≥ in pseudo-code, >= in Python, Java and JavaScript.
The big picture
≥ means 'greater than or equal to'. It compares two values and gives True when the left value is bigger than the right OR exactly the same as it — so 40 ≥ 40 is True, and it's False only when the left value is smaller. You'll often use it in IF statements and loops when a rule says 'at least' or 'or more'. Pseudo-code often writes it as ≥, while languages such as Python, Java and JavaScript write it as >=.
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 if it were >: saying 40 ≥ 40 is False because 40 isn't bigger than 40. The 'or equal to' part means equal values give 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
Without looking back: is 7 ≥ 7 True or False? What about 6.5 ≥ 7? And how would you write the first one in Python?
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?
How do Python, Java and JavaScript write ≥?
Why is ≥ typed as >= in code?
What goes wrong if you type => instead of >= in Python?
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
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 30 September 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.