Solaris AISolaris AI FlowDocs
Node ReferenceUtility

Filter

Conditionally pass or block data based on an expression.

View as Markdown

The Filter node evaluates a condition and either passes data downstream or stops execution at that branch.

Configuration

FieldTypeRequiredDescription
Node LabeltextNoDisplay name shown on the canvas
expressionstringYesValue to evaluate (supports template expressions)
operatorstringYesComparison: equals, not_equals, contains, exists
valuestringFor equals/not_equals/containsComparison value
Output Variable NamestringNoOptional response name for downstream references

How it works

  1. The expression is rendered using upstream node data
  2. The operator compares the rendered value against value
  3. If true, data passes through. If false, the branch stops.

If you set an Output Variable Name, downstream nodes can reference the filter result by that name. Leave it empty if you only need pass/block behavior.

Examples

Only continue if a value exists (non-empty):

expression: {birdeyeResponse.data.value}
operator: exists

Check if a field matches a specific value:

expression: {birdeyeResponse.data.symbol}
operator: equals
value: SOL

Check if a field contains a keyword:

expression: {aiResponse.data}
operator: contains
value: bullish

For numeric comparisons (greater than, less than), use the Condition node instead.

Output

When the expression passes the operator check:

{ "filtered": false, "passed": true, "value": "SOL" }

When it does not pass, downstream nodes on this branch are skipped and the node records:

{
  "filtered": true,
  "passed": false,
  "reason": "Expression \"{birdeyeResponse.data.symbol}\" resolved to \"BONK\" which did not pass equals check"
}

An empty expression short-circuits to { "filtered": true, "reason": "Filter expression is empty" }.

If you set an Output Variable Name, downstream nodes can read the result, for example {filterResponse.passed} or {filterResponse.value}. The value field is the rendered expression string, not the original template.

Next steps

On this page