WordGarden.io
Back to search

boolean

C2
adjective

Pronunciation

UK

  • /bˈuːliən/

US

  • /buˈliən/

Description

Imagine you're asking a question with only two possible answers: yes or no. That's the heart of what "Boolean" means! It comes from the name of mathematician George Boole, who developed an algebra dealing with these simple true/false values.

In everyday life, think about a light switch—it's either on (true) or off (false). Or consider whether a statement is correct (true) or incorrect (false). In computer science, Booleans are fundamental. They are used to make decisions in code: "If this condition is true, then do X; otherwise, do Y." A Boolean variable can only hold one of two values: `True` or `False`. You might say, "The statement 'the sky is blue' represents a Boolean value—it's True!"

Examples

  1. 1

    Data type

    This field only accepts a boolean value.

  2. 2

    Feature flag

    We added a boolean flag to control dark mode.

    • Domain

      in computing, a flag is a simple setting that turns something on or off

  3. 3

    Condition check

    The condition must evaluate to a boolean before the code can continue.

  4. 4

    Return value

    The method returns a boolean, so check the result before you save the file.

Forms and spellings

1 form open this card.

Main spelling

  • booleanadjective