NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

< > or < > (Logical OR) — Scratch Block Guide

📌 What you will learn

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.
INTERACTIVE LAB

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.

<A> and <B> FALSE
<A> or <B> TRUE
not <A> FALSE

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 < > or < > (Logical OR)
  1. When green flag clicked
  2. Forever
  3. If <key (right arrow) pressed? or key (d) pressed?> then
  4. 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.

Back to Operators Blocks See the overview and patterns for Operators Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.