Drawing a decision inside a loop in a flowchart
A decision diamond on the loop path is asked on every pass. Its Yes and No paths both rejoin before the arrow returns to the loop test.
Understanding Drawing a decision inside a loop in a flowchart in ACARA Digital Technologies Years 7–8
What it does: The count update comes after the paths merge, so it runs on every pass whichever way the decision went. The loop test is a diamond too. The body, including the inner decision, loops back to it each time. Both paths must rejoin so the flow can carry on and return to the loop test. The diamond is drawn once but asked on every pass, so 5 passes means 5 questions. If the No path never rejoins, the loop stops early on some passes. Both Yes and No should meet before the arrow back.
Common mistakes: Every arrow leaving a decision diamond needs a Yes or No label. Line 2 should be D -->|Yes| H[Say lower]. A decision must be drawn as a diamond, which is { } in Mermaid. D[high?] makes a plain step box. It should be D{high?}.
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 365–411) and word search (Modules 331–411).
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
decision inside a loopFill in the Blanks
Spot the Error
Student with a class code? Join your class →