CodeAgeBy Sitezack
If… then 🤔The robot's decisions0 XP
Chapter progress0/5

Lesson 5 of 6

A loop that decides

You can put an "if" INSIDE a loop: it's checked on every turn.

The robot dances 💃 four times. On each turn, "if the bonus is bigger than 5", it adds a sparkle ✨. Raise the bonus (the first number of the if) above 5.

🎯 Your mission

Change the bonus (the first number of the "if") so it's bigger than 5. You'll see four ✨ dancing with the 💃.

PRO lesson

This advanced chapter is part of CodeAge PRO. Unlock it to keep your adventure going.

Discover PRO