Drawing a loop with a compound exit condition in a flowchart
A loop test using AND or OR is drawn as a back arrow to the first question, with one combined diamond or two diamonds. Both exit reasons must lead out of the loop.
Understanding Drawing a loop with a compound exit condition in a flowchart in ACARA Digital Technologies Years 9–10
What it does: Both conditions must be true to stay in the loop, so each diamond has a No exit. The arrow goes back to the first question so both are checked again. Every part of the compound test must appear in the flowchart. Either one combined diamond or two diamonds in a row can be used. With AND, one failed part makes the whole test false, so both No arrows share the same outcome.
Common mistakes: After the Yes branch, the loop needs an arrow going back up to the diamond (the first question). Going on to END means the loop never repeats. The back arrow must return to the first question, D1. Returning to D2 means lives are never checked again. It should say 'arrow back to D1'.
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 492–534) and word search (Modules 459–534).
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
compound loop exitFill in the Blanks
Spot the Error
Student with a class code? Join your class →