# if < > then / else — Scratch Block Guide > Runs the first branch when true, or the second ("else") branch when false—never both. How to use the "if < > then / else" block in Scratch 3.0 (Control Blocks): clear explanation, working block example, and debugging tips. ## What this block does Runs the first branch when true, or the second ("else") branch when false—never both. Quiz answer checking, toggling pause/play, or switching between ground and air physics. - Category: Control Blocks - Key tip: Nesting another if-else inside "else" lets you handle 3 or more mutually exclusive grades/states. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using if < > then / else** - When green flag clicked - If <(answer) = (4)> then - Say (Correct!) for (2) seconds - Else - Say (Try again!) for (2) seconds Try it: Gives immediate right or wrong feedback. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Control Blocks](/en/dictionary/control/): See the overview and patterns for Control Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/control/if-else/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)