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

Start learning →

Operators Blocks

📌 What you will learn

Learn how Operators Blocks work in Scratch, when to combine them with other categories, and how to test them in a 3-minute experiment.

What these blocks do

Perform arithmetic (+, -, *, /), random numbers, comparisons (<, =, >), logic (and, or, not), text joining, modulo, and math functions.

  • Test the block alone first before putting it inside a big game.
  • Change one input number at a time and compare what changes.
  • Always add reset blocks under "When green flag clicked".

Hands-on mini experiment

Use "join" to display friendly messages like "Score: 120" and "mod 2 = 0" to test even vs. odd numbers.

Related Scratch guides

Learn how Operators Blocks work in Scratch, when to combine them with other categories, and how to test them in a 3-minute experiment.

Block Dictionary Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables. Learn more → Programming Concepts Sequence, loops, conditionals, variables, and coordinates. Learn more →

Individual operators block guides (18)

Open any individual block below for clear explanations, working Scratch examples, and common tips.

Arithmetic Operators (+, -, *, /) — Scratch Block Guide Performs addition, subtraction, multiplication, and division on numbers or variables. Learn more → ( ) - ( ) (Subtraction) — Scratch Block Guide Subtracts the second number from the first. Learn more → ( ) * ( ) (Multiplication) — Scratch Block Guide Multiplies two numbers together. Learn more → ( ) / ( ) (Division) — Scratch Block Guide Divides the first number by the second. Learn more → pick random (1) to (10) — Scratch Block Guide Generates a random number inclusively between the first and second values. Learn more → Comparison Operators (<, =, >) — Scratch Block Guide Compares two values and returns true or false for use inside if or wait-until blocks. Learn more → ( ) > ( ) (Greater Than) — Scratch Block Guide Returns true only when the left value is strictly larger than the right value. Learn more → ( ) < ( ) (Less Than) — Scratch Block Guide Returns true only when the left value is strictly smaller than the right value. Learn more → < > and < > (Logical AND) — Scratch Block Guide Returns true only when BOTH left and right conditions are true at the same time. Learn more → < > or < > (Logical OR) — Scratch Block Guide Returns true if EITHER condition (or both) is true. Learn more → not < > (Logical NOT) — Scratch Block Guide Flips true to false and false to true. Learn more → join (apple ) (banana) — Scratch Block Guide Combines two pieces of text or numbers into a single string. Learn more → letter (1) of (apple) — Scratch Block Guide Extracts a single character at the given 1-based position from a string. Learn more → length of (apple) — Scratch Block Guide Returns the total number of characters (including spaces) in a string. Learn more → (apple) contains (a)? — Scratch Block Guide Returns true if the second piece of text appears anywhere inside the first (case-insensitive). Learn more → ( ) mod ( ) (Remainder) — Scratch Block Guide Returns the remainder after dividing the first number by the second. Learn more → round ( ) — Scratch Block Guide Rounds a decimal number to the nearest whole integer. Learn more → (abs / floor / sqrt / sin / cos) of ( ) — Scratch Block Guide Provides scientific math functions: abs, floor, ceiling, sqrt, sin, cos, tan, asin, acos, atan, ln, log, e^, and 10^. Learn more →

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.