# Chapter 3: Conditionals (If / If-Else) > Teach your program to make decisions depending on keys, collisions, or score values. Chapter 3: Conditionals (If / If-Else) — Scratch Daizen English Textbook. Teach your program to make decisions depending on keys, collisions, or score values. ## Lesson goal & core concept Understand single checks vs. continuous checks inside a forever loop. An "if" block by itself checks only once at the instant the green flag is clicked. Putting "if" inside "forever" keeps checking 30 times every second. ## Step-by-step practice Work through these steps in the Scratch editor, predicting each result before clicking the green flag. - Write down the rule in plain English: "If touching Star, add 1 point." - Choose the matching hexagonal sensor or operator block. - Wrap the "if" inside a forever loop when continuous checking is needed. - Use "if-else" when two outcomes cannot both happen at once. **Chapter 3: Conditionals (If / If-Else) — Example** - When green flag clicked - Forever - If then - Say (Space pressed!) - Else - Say (Waiting...) Try it: Switches speech bubbles live as you press and release the Space bar. ## Mini challenge & next steps Add a second condition so pressing the Up arrow changes the sprite’s costume. - [Scratch Learning Textbook Home](/en/textbook/): Return to the full 4-stage curriculum overview. - [Scratch Block Dictionary](/en/dictionary/): Look up any block used in this chapter. ## Why It Works: Core Principles Behind "Chapter 3: Conditionals (If / If-Else)" (Scratch Learning Textbook) Real coding fluency comes from prediction, not passive copying. While studying "Chapter 3: Conditionals (If / If-Else)", pause before clicking the green flag to predict what the sprite will do, run the script, observe any difference, and adjust one block at a time. This predict-run-observe habit transfers directly to K–12 computer science, math, and text-based languages. At its core, "Chapter 3: Conditionals (If / If-Else)" focuses on this key idea: Teach your program to make decisions depending on keys, collisions, or score values. In real classroom instruction supervised by Takamasa Suzuki (Okinawa Minecraft Club Programming School "Crosswave", weva.jp), learners progress much faster once they can explain which variable holds state, which event triggers updates, and how the stage resets cleanly on every green-flag click. Always initialize sprite coordinates, direction, size, visibility, and variables explicitly at project start. A clean initialization sequence eliminates the notorious "you have to click the green flag twice" bug and makes testing predictable across Windows, macOS, Chromebooks, and iPads. ## Hands-On 3-Stage Progression: Prototype, Stress-Test, and Customize Follow this three-stage workflow to turn "Chapter 3: Conditionals (If / If-Else)" from a quick example into a polished, bug-free feature inside your own Scratch 3.0 project. Test after every small change instead of stacking 30 blocks at once. - Stage 1 (Minimal Working Test): Build only the core blocks for "Chapter 3: Conditionals (If / If-Else)" on a blank sprite and verify that the primary behavior works consistently on the very first green-flag click. - Stage 2 (Edge-Case & Variable Monitor Check): Turn on stage variable monitors and test boundary cases—zero, negative numbers, stage borders (-240 to 240, -180 to 180), rapid key presses, and clone cleanup. - Stage 3 (Original Art, Audio & Playtesting): Add custom vector/pixel costumes, balanced sound effects, clear instructions, and invite a friend or family member to playtest without hints so you can spot confusing moments immediately. ## Connecting to K–12 Learning, Official Scratch 3.0 & Next Steps Mastering "Chapter 3: Conditionals (If / If-Else)" strengthens math reasoning (coordinates, exterior angles, variables, probability), scientific modeling, and structured debugging. Once comfortable in Scratch 3.0, these exact patterns transfer smoothly into Python, Minecraft MakeCode, Roblox Studio, and web development. Keep your projects original and safe to share: avoid uploading third-party copyrighted characters or songs, never include real names or personal photos, and write clear Notes and Credits whenever you remix or learn from another creator. - [Complete Scratch Tutorial (Beginner to Advanced)](/en/tutorial/): Follow our structured end-to-end Scratch 3.0 tutorial roadmap. - [Scratch Block Dictionary (All 10 Categories)](/en/dictionary/): Look up every Motion, Looks, Control, Sensing, Operator, and Variable block. - [Interactive Scratch Labs (5 Browser Tools)](/en/tools/): Experiment live with coordinates, angles, boolean logic, lists, and probability. Updated: 2026-11-25 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/textbook/ch03-conditions/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)