Skip to main content

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.

Filter List
Input List*List
Target ValueText
Comparison KindSelect
Include Original IndexToggle
Fields marked * are required. Dots are connection handles.

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescriptionAvailable when
Input ListListRequiredProvide the list of items you want to process.
Target ValueTextOptionalComparison Kind is none of “Is empty (None / "" / [] / {})”, “Is not empty”

Settings

SettingTypeDefaultDescription
Comparison KindSelectEquals
Include Original IndexToggleOffOutput each item as a { index, item } object so its original position in the input list is preserved.

Comparison Kind options

OptionDefault
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.