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.

Related Tutorials, Projects & Documentation
evive-brain

Interfacing evive with PictoBlox

Introduction You can write scripts in PictoBlox for numerous projects that can be carried out using evive. This tutorial will discuss how to interface evive with PictoBlox,…
PictoBlox blocks Scratch how to

Getting Started with PictoBlox

Introduction PictoBlox is a Scratch 3.0-based graphical programming software that is the ideal companion for the setting the first step into the world of programming.…
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart