What If...? The Secret Superpower of Coding! 🚀
Mission: Awaken Pixel the Bear's Decision Brain!
Meet Pixel the Bear! 🐾
"Hi super-coders! Today I need your brain superpower to make decisions!"
🎮 QUICK WARM-UP GAME
IF you are wearing BLUE today...
👉 Raise your hand! (ELSE: Give a big wave! 👋)
🎮
IF you love Minecraft or Roblox...
👉 Give me your biggest gamer smile! 😁
Real-Life Logic: The Weather Dilemma 🌦️
Computers make choices just like you do every morning!
CONDITION: TRUE
🌧️
IF it is Raining outside...
THEN: Grab an Umbrella! ☂️
Stay 100% dry and safe from the storm!
CONDITION: FALSE
☀️
ELSE (It is Sunny)...
THEN: Wear Cool Sunglasses! 😎
Enjoy the golden warm sunshine outside!
Connecting to Scratch: The Super-C Block 🧩
Let's give Pixel the Bear his walking and jumping code!
⚠️ The River Dilemma!
Question for Coders:
What happens if we forget the
What happens if we forget the
ELSE block when Pixel reaches the river?
💡 The ELSE Hero:
Without
Without
ELSE, Pixel falls into the water! With ELSE, Pixel leaps over the river! 🚀
Interactive Challenge: The Mystery Cards! 🃏
Pick a card! Click to reveal the code rule inside!
👉 "Rule: IF Red Card ➔ Draw 2 Cards! ELSE ➔ Jump 3 Times!"
CARD A (Click Me!)
RED! Draw 2 🎴
CARD B (Click Me!)
BLUE! Jump 3x 🦘
Mission Accomplished! You Are Master Coders! 🏆
Pixel the Bear is safe at home thanks to your IF-ELSE superpowers!
LEVEL 5 UNLOCKED!
Badge Awarded: Master of Decision Logic
1️⃣
IF is the Question!
Checks whether something is TRUE or FALSE.
2️⃣
ELSE is the Backup Plan!
Tells the computer what to do when the condition is NOT met.