NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

repeat until < > — Scratch Block Guide

📌 What you will learn

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.

Example using repeat until < >
  1. When I start as a clone
  2. Repeat until touching (edge)?
  3. Move 10 steps
  4. 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.

Back to Control Blocks See the overview and patterns for Control Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.