Comparing values gives true or false
A comparison. Symbols like > (greater than), < (less than) and = (equal to) compare two values and give true or false. 7 > 3 is true, so a program can use it to decide.
Understanding Comparing values gives true or false in ACARA Digital Technologies Years 5–6
What it does: Four is not equal to six, so the comparison gives false. The symbol > means greater than. 7 is greater than 3, so the answer is true. Comparing two values always gives true or false. Here 8 is not less than 5, so it gives false. The equal sign in a comparison asks if both values are the same. 6 and 6 are the same, so it is true. A program uses true or false to decide what to do next. False just means that choice is not taken.
Common mistakes: 7 < 3 is false, but the program is meant to print true. The comparison should be score > 3, because 7 > 3 is true. 4 is less than 9, so a < b gives true, not false. The comment should say shows true.
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 85–104) and word search (Modules 73–104).
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
7 > 3Fill in the Blanks
Spot the Error
Student with a class code? Join your class →