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.
Accurate or loyal
- falseNot matching reality
- flagCloth symbol or signal
- bitSmall amount or portion
- toggleTwo-position switch
checkbox · switch · on · off · enabled · disabled · set · unset
Dependent on prerequisites
- ifConditional clause marker
- elseIndicating an alternative
- andTogether with also
- orChoice-linking conjunction
not · nand · nor · operator · expression · evaluation · comparison · predicate
true
Accurate or loyal
toggle · checkbox · switch · on · off · enabled · disabled · set · unset · active
conditional
Dependent on prerequisites
or · not · nand · nor · operator · expression · evaluation · comparison · predicate · assertion
two-state
Having two conditions
bipartite · dyadic · zero · one · twofold · either-or · complementary · opposite · polarity
- Boolean logicTwo-valued algebraic system
- Boolean algebraMathematics of binary operations
- Boolean operatorsSymbols joining truth values