The repeat until block
A loop block that keeps running the blocks inside it again and again, checking the condition each time, and stops only when the condition becomes true.
Understanding The repeat until block in Years 5–6 Creating Digital Solutions
What it does: The change block moves lives closer to 0 each time, so the condition will eventually be true and the loop will stop. 'Repeat until' keeps going while the condition is false and stops as soon as it becomes true. If nothing inside the loop changes the score, the condition stays false and you get an endless loop. 'Repeat until' is useful when you do not know how many repeats you need. 'Repeat 10' always runs exactly 10 times. The change must move the variable toward the goal. Use change count by 1 so count reaches 5.
Common mistakes: A plain repeat block needs a number of times, not a condition. To keep looping and check the condition each time, the line should be: repeat until <score = 3>. Changing steps by 0 means steps never gets closer to 5, so the condition never becomes true and the loop is endless. It should be: change steps by 1.
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 51–60) and word search (Modules 41–74).
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 until <condition>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →