# if < > then — Scratch Block Guide > Runs the enclosed blocks only when the hexagonal condition is true. How to use the "if < > then" block in Scratch 3.0 (Control Blocks): clear explanation, working block example, and debugging tips. ## What this block does Runs the enclosed blocks only when the hexagonal condition is true. React to key presses, collisions, high scores, or item pickups. - Category: Control Blocks - Key tip: Wrap "if" inside "forever" when you want continuous checking during gameplay. ## 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** - When green flag clicked - Forever - If <(score) > (9)> then - Say (You win!) Try it: Announces victory as soon as score reaches 10. ## 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/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)