Custom Block Boolean Input — Scratch Block Guide
Passes a true/false condition directly into a custom block.
What this block does
Passes a true/false condition directly into a custom block.
Pass flags like "is_boss?" or "play_sound?" to customize behavior cleanly.
- Category: My Blocks
- Key tip: Remember that the boolean is evaluated once at the moment the custom block is called.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- Define (Award Points pts with sound sound?)
- Change score by pts
- If sound? then
- Start sound Coin
Try it: Awards points with optional audio depending on the boolean input.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "Custom Block Boolean Input" in Scratch?
Pass flags like "is_boss?" or "play_sound?" to customize behavior cleanly. Remember that the boolean is evaluated once at the moment the custom block is called.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.