bool
Used for values that can be only true or false
- adjective
- /buːl/
- Specialized
:
booleano
- In programming, a bool value can only be true or false.
Examples
-
For example, I have world to bool functions.
-
Obvious ones is face up bool equals false.
-
I mean, I've always said that the idea of just using bool for propositions doesn't really scale so well.
-
You need to declare a variable as a bool if you want it to represent a binary state.
-
The function returns a bool that indicates whether the input is valid.
Synonyms
A kind of logic using values that are only true or false
focuses on values that have only two states such as true or false
Antonyms
Surface Forms
bool positive
Etymology
The word bool comes from the name of the mathematician George Boole, whose work gave us the term Boolean. He made a system where things are only 'true' or 'false', so bool means 'having only those two states'.