OR conditions
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Navigation and UI
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.
Related Content
- Create a filter in List
You can create a filter to restrict what records appear in a list by providing a set of conditions. When you run the filter, only records that meet the specified conditions are listed.
- Add related list conditions
Related list conditions allow you to include a relationship with another table in the filter. Related list conditions are supported in both List v3 and the Report interface.
- Filter on multiple string values
For a string field, you can create a filter that searches for multiple values by creating a comma-delimited list.
- Dynamic operators
The dynamic operator, is (dynamic), lists predefined dynamic filter options where the condition value is computed from a value in a reference field.