The bool data type
This article describes the bool data type.
The bool data type can be: true (1), false (0), or null.
bool literals
To specify a bool literal, use one of the following syntax options:
| Syntax | Description | |
|---|---|---|
true or bool(true) | Represents trueness. | |
false or bool(false) | Represents falsehood. | |
bool(null) | Represents the null value. |
Boolean operators
The bool data type supports all of the logical operators: equality (==), inequality (!=), logical-and (and), and logical-or (or).
Related content
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.