Comparison operators: !==, <, >, <= and >=
Comparison operators: !== checks two values are not equal, while <, >, <= and >= compare size. Each gives true or false. 50 >= 50 is true, but 50 > 50 is false.
Understanding Comparison operators: !==, <, >, <= and >= in ACARA Digital Technologies Years 7–8
What it does: > needs the left value to be strictly bigger, so two equal numbers give false. <= gives true when points is less than or equal to 100, including exactly 100. Not equal is written !== with the ! first. =! is not a comparison operator. At least 140 includes 140 itself, so use >=. Using > would wrongly reject a height of exactly 140. lives is 3, so the two values are equal. That means !== gives false. Comparison operators never return the difference. They always give a boolean, either true or false. !== means not equal to, so the result is true whenever score is different from 0.
Common mistakes: The comment says 50 or more passes, but score > 50 is false when score is exactly 50. It should be score >= 50. The not equal operator is written !== with the ! first. =! is not a valid comparison operator. It should be lives !== 0.
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 583–598) and word search (Modules 583–613).
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 →