Filter List
Uncontrolled node
Overview
The Filter List node evaluates a condition for each item in a list and returns only the items that match the condition.
This is useful when you want to remove unwanted values, filter by criteria, or prepare data for the next step in a workflow.
Inputs
Input | Type | Description | Default |
---|---|---|---|
List | List | A list of items (e.g., text, number, boolean, dictionary) to filter | - |
Outputs
Output | Type | Description |
---|---|---|
Output | List | A filtered list containing only items that meet the condition |
Panel Controls
The right-side panel includes a Pattern field, where you can define a Python-style condition using the variable value
. Only values that return True
from this condition will be included in the output list.
Example
If your list is:
"hello", "world"
and the pattern is:
value != "hello"
The output will be:
"world"
Tip
Use expressions like value.startswith("a")
, len(value) > 3
, or value["status"] == "active"
to filter based on content.