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.

Relational operators · ≥

Which marks pass?

A test is marked from 0 to 100. The program prints "Pass" when mark ≥ 40. Drag the two ends to cover every mark that passes — then decide: is 40 itself in, or out?

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.

8 of 8 still to sort.

Eight conditions. Some are traps. Commit before you read the reason.

Watch out: Don't let a big digit fool you: with negatives, the number further right on the number line is the bigger one.

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 ← 3
2 WHILE n ≥ 1
3 OUTPUT n
4 n ← n - 1
5 ENDWHILE
6 OUTPUT "Lift off!"
nn ≥ 1
3–

Output

 

Step 1: n starts at 3.

1 / 12

Keep an eye on the n ≥ 1 column each time line 2 is checked.

Step 1 of 12: n starts at 3..

Watch out: The pass where n is exactly 1 is the one people miss. 1 ≥ 1 is True, so the body runs.

Same comparison, different spelling

Written as ≥vsWritten as >=

Different languages may use different symbols for the operator. The meaning never changes — only how it's written.

Focus

Greater than or equal to

Written as ≥

a ≥ b — one symbol

Written as >=

a >= b — two characters, > then =

The insight

Both spellings ask the same question, so you may meet either one in an algorithm or use it in your own program.

What it means

Written as ≥

True if a is bigger than b or equal to it

Written as >=

True if a is bigger than b or equal to it

The usual slip

Written as ≥

Writing > and losing the line underneath

Written as >=

Writing > in place of >=

UK note

Different languages may use different symbols to represent the greater than or equal to operator.

Computer Science · Writing code

Your turn: write it, then check it

A cinema lets a customer see a film only if they are 15 or older. Their age is stored in the variable age. Write a selection statement, in pseudo-code or a programming language you know, that outputs "Allowed" when the customer can see the film. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1The boundary value makes a ≥ condition True: 40 ≥ 40 is True.
2Read left to right. 40 ≥ 45 asks 'is 40 at least 45?' — and the answer is False.
3With negative numbers, the value further right on the number line is bigger: −3 ≥ −5 is True.
4Just below the boundary isn't enough: 39.9 ≥ 40 is False.
5In a countdown loop such as WHILE n ≥ 1, the pass where n equals 1 still runs.
6Different languages may use different symbols, such as ≥ or >=, but the meaning is the same.

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?
Greater than or equal to. True if the left value is bigger than the right, or the same as it.
What kind of result does a ≥ comparison give?
A Boolean value: True or False.
On a number line, how do you show every x where x ≥ 40?
A filled-in (closed) dot at 40 with the line running to the right. The filled dot shows 40 is included.
Do all languages write greater than or equal to the same way?
Not necessarily. Different languages may use different symbols, such as ≥ or >=, for the same operator.
Does a >= b mean something different from a ≥ b?
No. They are two spellings of greater than or equal to, so the same values give the same True or False.
Is ≥ a comparison or does it store a value?
A comparison: it is a relational operator, and it produces True or False.
Is −2 ≥ −6 True or False?
True. −2 is further right on the number line, so it's the bigger number.
Does 5 ≥ 9 mean the same as 9 ≥ 5?
No — order matters. 9 ≥ 5 is True, but 5 ≥ 9 is False.
Which words in a requirement usually point to ≥?
'At least', 'or more', 'or older', 'no less than' — wording where the boundary value counts.
In WHILE n ≥ 1, does the loop body run when n is 1?
Yes. 1 ≥ 1 is True, so that pass runs. The loop only stops once n drops below 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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.