The forever block
A block that repeats the blocks inside it again and again until the program is stopped, for example with stop all. You can put an if block inside it to keep checking something.
Understanding The forever block in Years 5–6 Creating Digital Solutions
What it does: Putting an if block inside forever means the check is repeated again and again, so the sprite notices the edge whenever it happens. When the if condition becomes true, the stop all block runs and ends the program, which also ends the forever loop. Repeat until checks a condition to finish. Forever has no condition, so it keeps looping.
Common mistakes: An if block needs the word 'then' so the program knows what to do when the check is true. It should be: if touching edge? then. Inside a forever block we check things with an if block, not a 'when' block. The line should be: if touching Ball? then.
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
foreverFill in the Blanks
Spot the Error
Student with a class code? Join your class →