Getting Started with PictoBlox
Important Terms
Courses

Boolean Block

Introduction

Boolean block is an elongated hexagonal block shaped after the boolean elements in flowcharts. A boolean block contains a condition. When the block is invoked, it acts as a reporter block, reporting “true” or “false” string values or the numbers “1” and “0” depending on their usage in a script.

Shape

Boolean blocks are conditions that can either be true or false. They have a hexagonal shape and fit in the corresponding hexagonal slot on other blocks.

 

They can fit in number (reporter) inputs, too. In general, booleans return string values of “true” or “false”, but when inserted into a reporter input, the boolean instead will return “1” or “0”, allowing mathematical operations to be performed.

Use

As Boolean blocks are conditions (and report if they are true or false), they are used whenever a condition is needed. Conditions are used with some C blocks and some Control Stack blocks. A common use for conditions is the If () Then block — if the condition is true, the blocks held inside the C block will activate.

This work, “Boolean Block”, is a derivative of “Boolean Block” by Scratch, used under CC BY-SA 4.0. “Boolean Block” is licensed under CC BY-SA 4.0 by STEMpedia.

This helped
This didn't help

Content is available under CC BY-SA 4.0 unless otherwise noted.

PictoBlox Supported Boards
Extensions
Close Menu
×
×

Cart

STEMpedia Starter Kit is now available on Indiegogo!
STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!
x