( ) > ( ) (Greater Than) — Scratch Block Guide
Returns true only when the left value is strictly larger than the right value.
What this block does
Returns true only when the left value is strictly larger than the right value.
Detect new high scores (score > high_score) or crossing a finish line.
- Category: Operators Blocks
- Key tip: Equal values return false: 10 > 10 is 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.
- When I receive Game Over
- If (score) high_score> then
- Set high_score to score
Try it: Updates the high score whenever the player beats the record.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "( ) > ( ) (Greater Than)" in Scratch?
Detect new high scores (score > high_score) or crossing a finish line. Equal values return false: 10 > 10 is false.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.