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

Start learning →

Custom Block Boolean Input — Scratch Block Guide

📌 What you will learn

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.

Example using Custom Block Boolean Input
  1. Define (Award Points pts with sound sound?)
  2. Change score by pts
  3. If sound? then
  4. 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.

Back to My Blocks See the overview and patterns for My Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.