# < > and < > (Logical AND) — Scratch Block Guide > Returns true only when BOTH left and right conditions are true at the same time. How to use the "< > and < > (Logical AND)" block in Scratch 3.0 (Operators Blocks): clear explanation, working block example, and debugging tips. ## What this block does Returns true only when BOTH left and right conditions are true at the same time. Require multiple conditions, such as touching a door AND holding a key. - Category: Operators Blocks - Key tip: Also great for number ranges like (x > -50) and (x < 50). ## 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 < > and < > (Logical AND)** - When green flag clicked - Forever - If < and <(has_key) = (1)>> then - Broadcast (Open Door) Try it: Opens the door only when the player has the key. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Operators Blocks](/en/dictionary/operators/): See the overview and patterns for Operators Blocks. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-24 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/operators/and-or/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)