Today you will run code only when a condition is true.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
| 🎯 I can | run code only when a condition is true |
| 🧩 New blocks | 1 block |
| 📝 New words | 8 words |
| ⏱ Lesson time | ~35 min |
Teacher Guide
📋 Before class
⚠️ Common misconceptions
- Students may put the say block outside the if block — the cat speaks every frame, not only at the edge.
- Students may leave the diamond <> slot empty — the if block never triggers without a condition inside.
🎯 Differentiation
🐢 Struggling: Print a two-column chart: TRUE → code runs | FALSE → code skips. Have the student match each frame of the sequence to TRUE or FALSE before building.
🚀 Advanced: Challenge them to add a second if block that checks touching Sprite2 from Ch8 — combine both conditions in the same forever loop.
💡 During the lesson
- Warm-UpPoint to Frame 2 ("checking"). Say: "Every single frame the cat asks: Am I at the edge?" Reinforce that the check happens continuously inside the forever loop — not just once. Then act it out: stand at the door, press an imaginary button, open the door. Say: "IF I press → THEN the door opens. IF I do NOT press → THEN nothing happens." Ask students to think of other IF/THEN rules from daily life.
- Try ItExperiment 1 is the baseline. Experiment 2 adds one block inside the if — the cat now reacts in two ways at the edge. Experiment 3 puts say outside the if — the cat says "Edge!" every time, not only at the edge. This contrast shows what the if block is FOR: it gates the code by a condition.
- PlanDo the first box together, then let students pick and watch both stages. Ask students: "Which box is the IF moment?" (The third box.) "What is the condition?" (Touching edge.) Verbalizing this before building reinforces the concept.
- BuildWatch that students snap the sensing block INTO the diamond slot — it should lock in with a click. If a student drops it outside the slot, show them how to drag it directly onto the
<>space. Walk the room during steps 3-4.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.