Lesson 2 of 6
Only if it's true
The "if" block looks at a question. If the answer is true, it runs the blocks inside. Otherwise, it does nothing.
Here: "if the first number is bigger than 5". Change the first number so it's true, and the robot will throw a lightning bolt ⚡.
🎯 Your mission
Put a number bigger than 5 in place of the 1. The robot will say ⚡.
PRO lesson
This advanced chapter is part of CodeAge PRO. Unlock it to keep your adventure going.
Discover PRO →