Level 3

And, Or, Not

Level 3 · Chapter 4

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Use events, loops and if-then in one program.

Code 1B-AP-10Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Number & Operations in Base Ten · Grade 4

Read, compare and round big numbers.

Code 4.NBT.A.3Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will combine boolean conditions using AND, OR, and NOT.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-10 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I cancombine boolean conditions using AND, OR, and NOT
🧩 New blocks3 blocks
📝 New words7 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students use OR when they mean AND — run both versions side by side to show OR fires too easily.
  • Students think NOT flips the whole program, not just one condition — show it only wraps one diamond.
  • Students put AND/OR outside the if-diamond instead of nesting one inside the other — emphasize shape-matching.

🎯 Differentiation

🐢 Struggling: Use physical cards: two TRUE/FALSE cards. Have students hold both up and check AND vs OR rules before coding.

🚀 Advanced: Combine NOT with AND: <not <touching [edge ▾]?>> and <(score) > (5)> — score rises only away from edge AND above threshold.

💡 During the lesson

  • Warm-UpAct it out. Say: "Stand up IF you are wearing shoes AND you have a pencil." Only students with BOTH stand. Then repeat with OR: "Stand up IF you are wearing shoes OR you have a pencil." Many more students stand. Ask: "Which rule is stricter — AND or OR?" Later they meet NOT, which gives the opposite 🙃 — it flips the result.
    Point to each frame. Ask: "Is the cat winning yet?" The answer stays NO until the last frame, where score > 5 AND the cat touches the edge are both true. This is the AND rule in action.
  • Try ItProject the three experiments. Ask: "Which cat says 'Win!' more often?" (OR). Draw a simple table — two rows (touching edge / not) × two columns (score > 5 / score ≤ 5) — shade the WIN cells for AND (1 cell) vs OR (3 cells). For NOT, ask: "When does score increase?" (When the cat is NOT at the edge.) NOT wraps ONE diamond and still fits the if slot.
    Have students predict each result before they run it. Ask: "Which version fires the most?" Connect back to the real-world sunny-AND-homework example from Warm-Up.
  • PlanThe flowchart shows ONE diamond that asks BOTH questions at once — this matches the single <a> and <b> block the children drop into the if. For struggling students, simplify: draw two gates that a ball must pass through. Both gates open = win.
  • BuildWatch for students who place the and block BESIDE the if instead of INSIDE the diamond. The AND block is also diamond-shaped — show how one diamond nests inside another. The outer shape still fits the if slot.