boolean
/ˈbuliən/
noun
- A variable or data type that can have one of two values: true or false.
- You can store the result as a boolean in your code.
- The function returns a boolean indicating whether the user is logged in.
- A boolean is often used to represent a yes/no condition.
adjective
- Relating to a system of logic that uses only two values, typically true or false.
- In programming, boolean values are used to control the flow of a program.
- Search engines often support boolean operators like AND, OR, and NOT.
- A boolean expression evaluates to either true or false.
Synonyms