Lesson 5 of 11 · 7 min
Conditionals: if-then-else
A conditional checks if something is true, then chooses what to do. "If score > 10, then show 'You win!'" Conditionals make programs smart and interactive, reacting to the player or data.
if (score > 10) → 🏆
Check a condition, then act
Let’s try it! ✍️
Question 1 of