Boolean data type

A Boolean is a primitive data type that can have one of two values: True or False. It is represented by green wires on the block diagram. The Boolean constant is represented by a dynamic element that can be changed from True to False
with a left mouse click.
Boolean palette
The Boolean palette provides various functions that can be performed on Boolean values, such as AND, OR, and NOT. Most comparison functions from the Comparison palette return Boolean values.
Boolean controls and indicators

Boolean controls and indicators are available on the Boolean palette. Some controls can display Boolean text to describe the current state (i.e. ON/OFF).
Mechanical action of Boolean controls
Boolean controls have mechanical actions, which control how activation with the mouse affects the value of the control. A mechanical action allows the control to mimic certain physical actuators (e.g. a light switch or an emergency stop button).
The six types of mechanical actions are:
The latch behavior can not be used if the control has a local variable on the block diagram.
History
In LabVIEW 2010 the representation of Boolean constants on the block diagram changed so that only the currently selected value is visible.
Icon | LabVIEW Versions |
---|---|
Boolean True | |
![]() |
Before LabVIEW 2010 |
![]() |
Since LabVIEW 2010 |
Boolean False | |
![]() |
Before LabVIEW 2010 |
![]() |
Since LabVIEW 2010 |
This change was suggested by user altenbach on the LabVIEW Idea Exchange on 03.07.2009 and later confirmed to be included in the beta version of LabVIEW 2010 by user Wonger on 23.02.2010.