boolean variable

noun
UK /ˈbuːliən ˈveəriəbl/
US /ˈbuliən ˈveriəbl/

A boolean variable is a little box in a computer that can hold only yes or no.

The program uses a boolean variable to remember whether the light is on.


OTHER MEANINGS

2. In programming, a named storage location whose value is restricted to true or false.

Set the boolean variable isReady to true before starting the game.

3. A flag used to track a simple on/off state in a program.

The boolean variable loggedIn tells the app whether to show the profile page.

4. A logical value used in conditions and comparisons.

The loop stops when the boolean variable finished becomes true.