Comparison blocks: >, < and =
A comparison block checks two values and reports true or false. This one is true when the score variable is greater than 10. Use < for less than and = for equal to.
Understanding Comparison blocks: >, < and = in Years 5–6 Creating Digital Solutions
What it does: The = block compares the answer variable to 7 and reports true only if they are the same number. 15 is greater than 10, so score > 10 is true. 15 is not less than 10, so score < 10 is false. The = block checks if two values are equal. lives > 0 would check if there are some lives left.
Common mistakes: The program says the score is over 10, so it needs 'greater than' (>). With < the block checks for less than 10, which is false when the score is 12. It should be: if score > 10 then. The equals comparison block uses a single = sign, not two. It should be: if lives = 0 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 51–60) and word search (Modules 41–74).
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
score > 10Fill in the Blanks
Spot the Error
Student with a class code? Join your class →