Lesson 13 · Deciding with the If block

Programming basics · 5 min · See the playlist on YouTube ↗

✓ You already watched this lesson

To make a decision you need two blocks, and each one has its own role: a comparison, which only answers yes or no, and an If block, which acts on that answer.

🎯 The challenge of this lesson

Change the two to a three, and see what numbers the If now shows; then try it with a five.

Practise in the app

Read the written page for this lesson →

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…