You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/querylanguage/Expressions.adoc
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1133,13 +1133,14 @@ from Book where price between 1.0 and 100.0
1133
1133
==== Operators for dealing with null
1134
1134
1135
1135
The following operators make it easier to deal with null values.
1136
+
These predicates never evaluate to `null`.
1136
1137
1137
1138
[cols="20,20,15,~"]
1138
1139
|===
1139
1140
| Operator | Negation | Type | Semantics
1140
1141
1141
-
| `is null` | `is not null` | Unary postfix | `true` if the value to the left is null
1142
-
| `is distinct from` | `is not distinct from` | Binary | `true` if the value on the left is equal to the value on the right, or if both are null
1142
+
| `is null` | `is not null` | Unary postfix | `true` if the value to the left is null, or false if it is not null
1143
+
| `is distinct from` | `is not distinct from` | Binary | `true` if the value on the left is equal to the value on the right, or if both values are null, and false otherwise
1143
1144
|===
1144
1145
1145
1146
[[null-predicate-example]]
@@ -1148,6 +1149,33 @@ The following operators make it easier to deal with null values.
1148
1149
from Author where nomDePlume is not null
1149
1150
----
1150
1151
1152
+
[[boolean-predicate]]
1153
+
==== Operators for dealing with boolean values
1154
+
1155
+
These operators perform comparisons on values of type `boolean`.
1156
+
These predicates never evaluate to `null`.
1157
+
1158
+
[NOTE]
1159
+
====
1160
+
The values `true` and `false` of the `boolean` basic type are different to the logical `true` or `false` produced by a predicate.
1161
+
====
1162
+
1163
+
For _logical_ operations on <<conditional-expressions,predicates>>, see <<logical-operators>> below.
1164
+
1165
+
[cols="20,20,15,~"]
1166
+
|===
1167
+
| Operator | Negation | Type | Semantics
1168
+
1169
+
| `is true` | `is not true` | Unary postfix | `true` if the value to the left is `true`, or `false` otherwise
1170
+
| `is false` | `is not false` | Binary | `true` if the value to the left is `false`, or `false` otherwise
0 commit comments