Tokanny Faith Foundation Tokanny Faith Foundation Learning Hub
Unit 7 · Lesson 2

Loops and conditions

Two big ideas in coding, repeating instructions with loops and making decisions with conditions, shown in Scratch.

2:01 videoSave video (2.1 MB) Captions are on

Key points

  • A loop repeats instructions. "repeat (10)" runs a set number of times; "forever" runs until you stop it.
  • A condition makes a decision. "If something is true, then do this."
  • Programs often put conditions inside forever loops, so they keep checking.
  • 10 turns of 36 degrees make a full circle (360 degrees).

Try it: Loop or condition?

Decide which coding idea fits each task.

Check your understanding