Definition, Meaning & Synonyms
bool
Noun
/buːl/
Definition
A data type that can hold one of two values: true or false.
Examples
- In this programming language, the variable must be of type bool to store a true or false value.
- She checked the condition, and the result was a bool indicating whether the input was valid.
- The function returns a bool that specifies if the operation was successful.
Meaning
The term ‘bool’ comes from ‘boolean’, named after mathematician George Boole. It is commonly used in programming to represent binary states.
Synonyms
- boolean
- true/false value
- binary state