Boolean Operators
The standard Boolean operators, AND, OR, and NOT, can be used in both content and property-value queries. The NOT operator is supported in an AND NOT operation as the full form of the NOT operator. Unary NOT is supported as an operator for value-type property queries (for example, ! @size > 100). In addition, the Boolean operators can be replaced by symbols. The Boolean operators and their associated full forms and symbols are the following.
| Operator | Full form | Symbol | Notes |
|---|---|---|---|
|
AND |
AND |
& |
Only the English spelling of the long form is available in Dialect 2. |
|
OR |
OR |
| |
Only the English spelling of the long form is available in Dialect 2. |
|
NOT (binary) |
AND NOT |
&! |
Only the English spelling of the long form is available in Dialect 2. |
|
NOT (unary) |
NOT |
! |
Unary NOTfor value-type property queries. Only the English spelling of the long form is available in Dialect 2. |
In Dialect 1, the Boolean operators are localized for several non-English languages. See Incompatibilities of Dialect 2 with Dialect 1 for complete details.