Logic action Logic

Keep only the items in a list that match your conditions. Supports AND/OR logic and comparisons like equals, greater than, and membership checks.

At a Glance

FieldValue
Action IDfilter
CategoryLogic
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagslogic, filter, array, query, control-flow

Payload Schema

FieldTypeRequiredDescription
arrayarrayYesArray of objects to filter
filterobjectYesFilter DSL with $and or $or logical operators containing field conditions. Supports $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin operators.

Result Schema

FieldTypeRequiredDescription
filteredarrayYesFiltered array items that match the filter

Examples

json
{ "type": "filter", "payload": { "array": [ { "id": "1", "amount": 1500, "status": "active" }, { "id": "2", "amount": 50, "status": "pending" } ], "filter": { "$and": [ { "status": { "$eq": "active" } }, { "amount": { "$gte": 1000 } } ] } }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I