FREE Live Master Session: Code Your AI Companion for Kids

    Register for Free →
    ← Scratch Worksheets
    Free Scratch Worksheet

    Scratch ConditionalsIf Then, If Else & Nested Logic

    Learn how to make your Scratch projects smart and reactive. Use conditionals to detect collisions, handle win/lose states, and build real game logic — step by step.

    🟡 Intermediate📄 6 Sections❓ 10 Quiz Questions✏️ 4 Exercises
    💡

    What is a Conditional?

    🔀 What is a Conditional?

    Imagine a traffic light. When it's green, you go. When it's red, you stop. The light makes a decision based on a condition. In Scratch, conditional blocks do exactly the same thing — they check whether something is true, and only run blocks if it is.

    Without a conditional (always runs)

    when flag clicked

    say [You win!] — runs every time, even score = 0!

    With a conditional (smart!)

    when flag clicked

    if <score = 10> then

    say [You win!]

    end — only says it when score is 10

    🧠 Key Idea — Boolean conditions

    Every conditional needs a condition — something that is either true or false. In Scratch, conditions are diamond-shaped blocks called Booleans. Examples:

    • <touching edge?> → true or false
    • <key [space] pressed?> → true or false
    • <(score) > (5)> → true or false

    🌍 Real-world analogies

    🚦

    Traffic light

    If green → go. If red → stop.

    🌡️

    Thermostat

    If temp < 20°C → turn on heater.

    🎮

    Video game

    If lives = 0 → show Game Over screen.

    If Then

    Do something when true

    🔀

    If Else

    Choose between two actions

    🪆

    Nested If

    Check multiple conditions

    🛝

    Conditional Simulator

    Experiment with conditions and see how Scratch makes decisions!

    XP 40
    Streak3 days
    Boolean BeginnerLevel 1
    1Choose a Condition
    Checks if the Cat sprite is touching the Apple sprite.
    2Set Condition Value
    🎲Random Challenge

    Condition: Score > 10

    Current Score:7

    Will the code inside IF run?

    </>Scratch Code
    when 🚩 clicked
    if
    touching [ 🍎 Apple ] ?
    then
    say [Yummy!] for 2 seconds
    end

    The IF block checks the condition first.

    If it is TRUE, the blocks inside run.

    If it is FALSE, the blocks are skipped.

    🚩Scratch Stage
    Score7
    ☁️
    ☁️
    ☁️
    Cat
    🍎Apple
    🌸🌼🌱🌸
    🔮Execution Flow
    1Check Condition

    touching [ 🍎 Apple ] ?

    2Result
    Waiting...
    3Action Block

    Pending...

    ▶ Wait
    4Finished

    Execution done

    🏁
    🧠What Happened?
    The condition was TRUE!

    The condition was TRUE! Since the Cat is touching the Apple, Scratch ran the blocks inside the IF.

    Try all conditions to earn a reward!0 / 3 Completed
    🎁
    Try Different Conditions
    🏆
    REWARD

    Condition Explorer

    +10 XP
    Cat

    Great job! You explored all conditions!

    🚀 Live Classes for Kids

    Go Further with Live 1-on-1 Scratch Tutors

    Worksheets are great — but live mentorship accelerates learning 10×. Join our Scratch Programming Course for Kids and build 20+ real games & animations with expert guidance.