< > and < > (Logical AND) — Scratch Block Guide
Returns true only when BOTH left and right conditions are true at the same time.
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).
Scratch Logic Gate Explorer (AND / OR / NOT)
Toggle Condition A and Condition B to see live true/false results for Scratch AND, OR, and NOT boolean blocks.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Forever
- If <touching (Door)? 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.
FAQ
When should I use "< > and < > (Logical AND)" in Scratch?
Require multiple conditions, such as touching a door AND holding a key. Also great for number ranges like (x > -50) and (x < 50).
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.