Filter List
Splits a list into two outputs by testing each item against a condition: items that match go to the "Matched" output, the rest to "Unmatched". An empty branch is skipped, so you can chain several filters to route items down different paths.
The Filter List node splits a list into two outputs by testing each item against a condition. Items that match go to the "Matched" output, the rest to "Unmatched".
Pick a comparison (contains, equals, etc.) and a target value — every item in the input list is checked against it. When a branch ends up empty, it is skipped, so you can chain several Filter List nodes to route items down different paths.
Enable "Keep Original Index" to output each item as a { index, item } object, preserving its position in the original list — useful when you need to recombine or reorder items downstream.
Inputs
Each input can be typed in directly or connected to another node's output.
| Input | Type | Required | Description | Available when |
|---|---|---|---|---|
| Input List | List | Required | Provide the list of items you want to process. | — |
| Target Value | Text | Optional | Comparison Kind is none of “Is empty (None / "" / [] / {})”, “Is not empty” |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Comparison Kind | Select | Equals | |
| Include Original Index | Toggle | Off | Output each item as a { index, item } object so its original position in the input list is preserved. |
Comparison Kind options
| Option | Default |
|---|---|
| Equals | ✓ |
| Not equals | |
| Contains | |
| Not contains | |
| Ends with | |
| Starts with | |
| Regex Match | |
| Greater than | |
| Less than | |
| Greater than or equal | |
| Less than or equal | |
| Is empty (None / "" / [] / {}) | |
| Is not empty |
Output
Type: JSON (json)
Named output handles: Matched, Unmatched.