FILTER

In a data query, you can use the FILTER operator to filter elements using a Boolean expression.

If the coming element:

  • Matches the expression, it goes through the output.
  • Does not match the expression, nothing goes through the output.

This operator is stateless and the context of processing is only 1 element. This operator keeps the order of the input stream.

For more information, see the SEARCH operator and the Expression Language documentation.

This page discusses:

See Also
Expression Language
Defining Data Queries

Input

There is one input. There are no constraints on the element type or on the number of elements in the stream.

Output

There must be one output. The element type is identical to the input.

The output stream contains as many elements as the input stream. It does not affect the order (if any) of the elements in the stream.

General Parameters

Parameter Description
Label

Specify the label to display below the operator type in the data query.

Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.
Operator input variable Specify the name to give to the variable that contains the input data. The variable is then available when you define expressions.

Filtering Criteria Parameter

Parameter Description
Predicate Define the Boolean expression used to filter results. The elements for which the Boolean expression is true can pass the filter.