Logical type
-
BOOL
-
Alias:
BOOLEAN
-
Description
The BOOL
type represents a truth statement and can take the values:
true
, false
(boolean values) or NULL
.
Boolean values can be explicitly specified using true
and false
literals. Most often, however, they are created as a result of a comparison. For example, the comparison i > 10
returns a Boolean value.
Logical operators
The logical operators AND
and OR
can be used to combine Boolean values.
X | X AND true | X AND false | X AND NULL |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
X | X OR true | X OR false | X OR NULL |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|