Filter
Goes through an array and keeps the items that match your conditions. The items that don't match are not lost — they come out separately as discarded.
Filter is configured in its own dialog (Configure Filter) rather than the regular property panel.
Settings
| Setting | Required | Default | Description |
|---|---|---|---|
Items (input) | Yes | — | The array to filter, usually an expression such as {{ $nodes['Fetch Orders'].items }}. |
Keep the items that (keep) | No | match | match keeps matching items; don't match (nonMatching) keeps the rest. |
Conditions (items, logicalOperator) | Yes | One empty condition, AND | One or more conditions or condition groups, combined with AND or OR. At least one condition is required. |
Inside a condition, refer to the current element as {{ $item }} (e.g. {{ $item.status }}) and to its zero-based position as {{ $index }}. All the usual expression roots are available too.
Conditions
Each condition has a left value, an operator, a right value (not needed for unary operators) and a type. With type Auto (the default) values are compared loosely. Choosing a type — Text, Number, Boolean, Date, Array or Object — converts both sides first, so "10" greater than "9" is true as Number, and dates compare as instants. If a value can't be converted, the condition is false. Text conditions can be made case-insensitive.
| Group | Operators |
|---|---|
| Equality | equals, does not equal |
| Text & lists | contains, does not contain, starts with, ends with, matches regex, does not match regex; length equals / greater than / less than (Text and Array types only) |
| Comparison | greater than, greater than or equal to, less than, less than or equal to, is before, is after |
| Existence | exists, does not exist, is empty, is not empty |
| Boolean | is true, is false |
For the Array type, contains checks for an element; for Object, it checks for a key.
Ports
| Port | Description |
|---|---|
main (input) | The step(s) the filter runs after. |
output | { items, count, discarded, discardedCount } |
Output
{
"items": [
{ "id": 101, "status": "paid", "amount": 250 }
],
"count": 1,
"discarded": [
{ "id": 102, "status": "pending", "amount": 40 }
],
"discardedCount": 1
}
Example
Keep only paid orders over 100 from a Fetch Orders step:
- Items:
{{ $nodes['Fetch Orders'].items }} - Keep the items that: match
- Conditions (AND):
{{ $item.status }}· equals ·paid{{ $item.amount }}· type Number · greater than ·100
Then use {{ $nodes['Filter'].items }} in the next step.
Notes
- Order is preserved in both
itemsanddiscarded. - Items must resolve to an array. A JSON array string is parsed; a single value is treated as a one-item list; an empty value gives an empty list. Stored files must be parsed first (for example with Parse CSV) or iterated with Loop.
- To route a single value down different paths rather than filtering a list, use If / Else or Switch.