Choosing between several paths
Checks another condition when the first one is false, so an algorithm can pick from more than two paths. Conditions are checked in order and only one path runs.
Understanding Choosing between several paths in Years 5–6 Creating Digital Solutions
What it does: If the score is 95, the first condition is true so Show A runs and the ELSE IF is skipped. One IF, one ELSE IF and one ELSE make three different paths, and only one of them runs. ELSE IF gives the algorithm another condition to check. It only gets checked if the condition before it was false. IF is one path, ELSE IF is a second path and ELSE is a third path. ELSE IF lets us choose from more than two paths. A final ELSE has no condition. It covers every case the earlier checks did not match.
Common mistakes: Conditions are checked in order. A score of 95 is at least 50, so it would get Silver and never reach the Gold check. The line should be IF score >= 90 THEN. The IF line is missing the word THEN. It should be IF weather = "rainy" 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 11–20) and word search (Modules 1–20).
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
ELSE IFFill in the Blanks
Spot the Error
Student with a class code? Join your class →