REPEAT UNTIL a condition is true
A loop that keeps repeating its steps until a condition becomes true. Use it when you don't know how many times. Make sure the condition can happen, or the loop never stops.
Understanding REPEAT UNTIL a condition is true in Years 5–6 Creating Digital Solutions
What it does: You can't know how many rolls it will take to get a 6, so the loop runs until the condition is true. The condition comes after UNTIL. 'Walk forward' is the step that gets repeated.
Common mistakes: The loop would stop on a wrong answer. It should keep asking until the answer is correct, so the line should be UNTIL answer is correct. The score starts at 0 and goes up, so it can never be less than 0. The loop would never stop. It should be UNTIL score = 10.
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
REPEAT ... UNTILFill in the Blanks
Spot the Error
Student with a class code? Join your class →