WordGarden.io

boolean

C2
Uncommon

Pronunciation

UK

    US

    • /buˈliən/

    Meanings

    Adjective

    1. relating to logic or computation that uses two truth values, usually true and false

    Noun

    1. a data value, variable, or expression that can be only true or false

    Beyond the definition

    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.

    See also

    Similar

    Shades of meaning

    Contrast

    Used with (collocations)

    • boolean value
    • boolean expression
    • boolean operator
    • boolean algebra

    Explore

    Forms and spellings

    1 form open this card.

    Main spelling

    • booleanadjective