Custom filter components and operators

Use these components and operators when you build a custom filter. For steps, see Build a custom filter.

Filter components

When you create a filter, you can add conditions or condition groups. A condition group contains multiple conditions.

Component Description Example Example outcome
Condition Filters consist of conditions. Each condition includes a field, an operator, and a value.

Displays all devices with a customer name that exactly matches “Customer 1”.
Groups Combine filter expressions into nested groups by using the following logical operators.
  • And
  • Or

Include at least two filter conditions in each group.

Displays all results that match either of the And groups. This means the device type is Server and the operating system is macOS, Or the device type is Desktop and the operating system is Windows.

Comparison operators

Comparison operators compare the value in a field with the value you enter.

Operator Finds rows where the field Example
Contains Contains the text Name contains AWP
Does not contain Doesn't contain the text Name does not contain AWP
Starts with Begins with the text Name starts with NY-
Ends with Ends with the text Name ends with -01
Equals Matches the value exactly Customer name equals Customer 1
Does not equal Doesn't match the value Customer name does not equal Customer 1
Is blank Is empty No data in the field
Is not blank Isn't empty Any data in the field
Is any of Matches any value in a set OS is any of Linux, macOS
Is none of Matches no value in a set OS is none of Windows
Is greater than Is more than the value Value > 21
Is less than Is less than the value Value < 21
Is greater than or equal to Is the value or more Value >= 60000
Is less than or equal to Is the value or less Value <= 150000

Logical operators

Logical operators join conditions or groups.

Operator Result
And Includes results that meet every condition.
Or Includes results that meet at least one condition.
Not And Excludes results that meet every condition.
Not Or Excludes results that meet at least one condition.

Related topics