Skip to content
Tech Dictionary
DictionaryThe dataContribute
Dictionary/Programming
CodeBeginner

Boolean

Also known as bool

A data type with two values, usually called true and false.

Think of it this way

A yes-or-no answer that refuses to add 'well, it depends'.

In the real world

The value isLoggedIn can be true or false.

One thing to remember

Truthiness rules are language-specific and are not always Boolean values.

Related

Data typeConditional

Go a little deeper

  • Python language tutorial (opens in a new tab)
  • MDN Glossary (opens in a new tab)
Improve this entry

What do we build for, if not to lessen each other’s hardship?

Tech Dictionary