Lesson 5 of 8

🤔 Conditions (If/Then)

🎯 Grades K–2 ⏱ ~15 minutes 💚 Beginner

What You'll Learn

  • What IF/THEN means in coding
  • How computers make decisions
  • What IF/ELSE does
Quick Check

1. An IF statement is used for:

ARepeating steps
BMaking decisions based on a condition
CDrawing shapes

2. "IF it rains THEN bring umbrella ELSE enjoy sunshine" is an example of:

AA loop
BAn If/Else condition
CA sequence

3. In a game: "IF you collect all coins THEN next level!" — what is the condition?

ANext level
BYou collect all coins
CThe game starts