Relational operators: <, <=, > and >=
Relational operators that compare the size of two values and give TRUE or FALSE. < and > leave out the boundary value; <= and >= include it, so 50 >= 50 is TRUE but 50 > 50 is FALSE.
Understanding Relational operators: <, <=, > and >= in IGCSE Computer Science Paper 2
What it does: <= gives TRUE when Mark is 100, because it includes the boundary. < would reject 100. >= means greater than OR equal to. 50 is equal to 50, so the condition is TRUE. > only accepts values strictly bigger than 50. 50 is not bigger than itself, so the result is FALSE. < leaves out the boundary. Only ages 17 and below make Age < 18 TRUE. <= includes the boundary value 18, but < does not. A score of exactly 50 should pass, so you need >= to include the boundary. Using > would wrongly fail a score of 50.
Common mistakes: There is no => operator in pseudocode. 'Greater than or equal to' is written >= (the > comes first). The line should be IF Score >= 50 THEN. <= includes the boundary, so an 18-year-old would be told 'Under 18'. Under 18 means strictly less than 18, so use <. The line should be IF Age < 18 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 358–368) and word search (Modules 358–378).
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 →