OR conditions
The condition builder uses two different types of OR conditions: top-level and dependent.
Using a dependent OR condition, you can specify alternative criteria to a single operation. Dependent OR conditions work in the manner A and (B or C). When you have an OR condition in the query, the magnifying glass is no longer available. The conditions you put in the quick search headers are ANDed together. Having an OR makes it ambiguous as to where the new condition should go, for example before the OR, or after the OR.
For example, to return a list of all unassigned problem and incident records from the Task table, create a filter with a dependent OR on the Number field.
[Assigned to] [is] [empty] AND [Number] [begins with] [PRB] OR [Number] [begins with] [INC].
A top-level OR condition allows you to display the results of multiple filter criteria in a single list. Top level OR conditions work in the manner (A and B) or (C and D).
- [Active] [is] [true] AND [Category] [is] [Hardware]
- Top level OR condition
- [Active] [is] [false] AND [Category] [is] [Software]
Top-level and dependent OR conditions can be used together. Filters using both types of OR conditions work in the manner (A or B) or (C or D). By mixing AND conditions with top-level and dependent OR conditions, you can create very specific filters.