if-then-else block
A selection structure that runs one set of instructions if a condition is true, and a different set if it is false
Understanding if-then-else block in QCE Digital Solutions Unit 1
What it does: END IF is the keyword pair that marks the end of a selection block. This description matches the IF-THEN-ELSE selection structure. IF-THEN-ELSE runs one set of instructions if the condition is true, and another if it is false. A simple IF-THEN block without ELSE is valid when there's no alternative action needed. The closing keyword is written as two words: END IF. ENDIF written as one word is incorrect — VCAA pseudocode uses END IF as two words.
Common mistakes: The block should close with END IF, not END OF IF. The condition line is missing THEN — it should read IF total > 100 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 158–380) and word search (Modules 82–380).
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
IF-THEN-ELSEFill in the Blanks
Spot the Error
Student with a class code? Join your class →