repeat until < > — Scratch Block Guide
Repeats the enclosed blocks until the condition becomes true, then exits and continues.
What this block does
Repeats the enclosed blocks until the condition becomes true, then exits and continues.
Move a bullet until it touches an edge or enemy, then delete the clone.
- Category: Control Blocks
- Key tip: If the condition is already true at the start, the loop runs 0 times.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When I start as a clone
- Repeat until touching (edge)?
- Move 10 steps
- Delete this clone
Try it: Flies cleanly across the stage and deletes itself at the border.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "repeat until < >" in Scratch?
Move a bullet until it touches an edge or enemy, then delete the clone. If the condition is already true at the start, the loop runs 0 times.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.