Relational operators = < <= > >= <>
Relational operators compare two values and give TRUE or FALSE: = equal, < less, <= at most, > greater, >= at least, <> not equal. Use = to compare, ← to assign.
Understanding Relational operators = < <= > >= <> in IGCSE Computer Science Paper 2
What it does: In a condition, = checks whether the two values are equal. Assigning a value uses ← instead. The ← arrow stores the value 0 in Total. It does not compare anything and gives no TRUE or FALSE result. Cambridge pseudocode uses <> for not equal. The symbol != belongs to languages such as Python. The >= operator means greater than or equal to. 16 is equal to 16, so the result is TRUE.
Common mistakes: => is not a relational operator in Cambridge pseudocode. 'Greater than or equal to' is written >=, so the line should be IF Age >= 18 THEN. Cambridge pseudocode writes 'not equal to' as <>, not !=. The line should be IF Name <> "Admin" THEN.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 27–36) and word search (Modules 27–46).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
= < <= > >= <>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →