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

Start learning →

< > and < > (Logical AND) — Scratch Block Guide

📌 What you will learn

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).
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 < > and < > (Logical AND)
  1. When green flag clicked
  2. Forever
  3. If <touching (Door)? and (has_key) = (1)> then
  4. 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 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 "< > 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.