Multiple search filter components can be combined using Boolean operators expressed in prefix notation as follows:
(Boolean-operator(filter)(filter)(filter)...)
where Boolean-operator is any one of the Boolean operators listed in Table 13–6.
Boolean operators can be combined and nested together to form complex expressions, such as:
(Boolean-operator(filter)(Boolean-operator(filter)(filter)))
The Boolean operators available for use with search filters include the following:
Table 13–6 Search Filter Boolean Operators
Operator |
Symbol |
Description |
---|---|---|
AND |
& |
All specified filters must be true for the statement to be true.For example, (&(filter)(filter)(filter)...) |
OR |
| |
At least one specified filter must be true for the statement to be true.For example, (|(filter)(filter)(filter)...) |
NOT |
! |
The specified statement must not be true for the statement to be true. Only one filter is affected by the NOT operator. For example, (!(filter)) |
Boolean expressions are evaluated in the following order:
Innermost to outermost parenthetical expressions first
All expressions from left to right