bool

Binary data type

Bool is programmer shorthand for boolean, a data type with only two possible values: true or false.

Named after mathematician George Boole, bools are fundamental to computing logic—controlling conditions, loops, and decisions in code: if (isValid) returns a bool, The function returns a bool indicating success.

datatype

true

Accurate or loyal

  • falseNot matching reality
  • flagCloth symbol or signal
  • bitSmall amount or portion

toggle · checkbox · switch · on · off · enabled · disabled · set · unset · active

logic

conditional

Dependent on prerequisites

  • ifConditional clause marker
  • elseIndicating an alternative
  • andTogether with also

or · not · nand · nor · operator · expression · evaluation · comparison · predicate · assertion

binary

two-state

Having two conditions

bipartite · dyadic · zero · one · twofold · either-or · complementary · opposite · polarity

Opposites
data type complexity

boolarray

Ordered collection or display

object · float · double · string · int

Phrases
Family

boolean, booleans

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G