( ) < ( ) (Less Than) — Scratch Block Guide
Returns true only when the left value is strictly smaller than the right value.
What this block does
Returns true only when the left value is strictly smaller than the right value.
Check when HP drops below 1 or a falling object goes below y = -170.
- Category: Operators Blocks
- Key tip: Using "< 1" is safer than "= 0" in case a big hit drops HP from 2 directly to -3.
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
- Forever
- If <hp (1) then
- Broadcast Game Over
Try it: Ends the game cleanly when HP reaches 0 or less.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "( ) < ( ) (Less Than)" in Scratch?
Check when HP drops below 1 or a falling object goes below y = -170. Using "< 1" is safer than "= 0" in case a big hit drops HP from 2 directly to -3.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.