Comparison Operators (<, =, >) — Scratch Block Guide
Compares two values and returns true or false for use inside if or wait-until blocks.
What this block does
Compares two values and returns true or false for use inside if or wait-until blocks.
Test win scores, timer expiration, and exact quiz answers.
- Category: Operators Blocks
- Key tip: Text equality in Scratch is case-insensitive ("cat" = "CAT" is true).
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
- If (score) = (100) then
- Say Perfect!
Try it: Triggers when score equals 100.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "Comparison Operators (<, =, >)" in Scratch?
Test win scores, timer expiration, and exact quiz answers. Text equality in Scratch is case-insensitive ("cat" = "CAT" is true).
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.