boolean

adjective
UK /ˈbuːliən/
US /ˈbuːliən/

A boolean is a value that can only be true or false.

The program checks a boolean to decide whether the door is open.


OTHER MEANINGS

2. Relating to a system of logic that uses only the values true and false.

Boolean algebra simplifies circuits that switch on and off.

3. In computing, a data type that stores only true or false.

Set the boolean flag to true before running the test.

4. A search method that combines words with AND, OR, and NOT.

Use a boolean search to find articles about cats and dogs.