< > or < > (Logical OR) — Scratch Block Guide
Returns true if EITHER condition (or both) is true.
What this block does
Returns true if EITHER condition (or both) is true.
Support both Arrow keys and WASD keys for player controls.
- Category: Operators Blocks
- Key tip: Supporting WASD + Arrows makes your Scratch games feel professional.
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 <key (right arrow) pressed? or key (d) pressed?> then
- Change x by 6
Try it: Lets players move right with either the Right Arrow or the D key.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "< > or < > (Logical OR)" in Scratch?
Support both Arrow keys and WASD keys for player controls. Supporting WASD + Arrows makes your Scratch games feel professional.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.