DictionaryBooleanTrue-or-false logic
adjective / noun

Boolean

BOO-lee-un/ˈbuːliən/

Representing one of two logical values: true or false.

The Boolean selector offers exactly two values: true and false.

A close-up of a computer interface with one Boolean-value selector expanded, revealing exactly two available values: true and false.
Etymology

Boole’s name, with an adjective ending, identifies the connection to abstract algebraic systems. In this sense, it describes values limited to the two logical alternatives, true and false.

In context

Karter Sanamo1:49
avoiding boolean arguments is to always go with enums. So enums are essentially, you [music] could think of them as booleans, but instead of just having the ability to have true or false
This One Boolean Argument Mistake Tanks Code Quality

More examples

  • A Boolean value can be either true or false.
  • The program stores the answer as a Boolean.
  • Each Boolean variable records whether a door is open.

Forms

Boolean · Booleans

Similar words

binary
Binary covers systems with two states; Boolean specifically concerns logical truth values.