Condition

Add a condition

Configuration

Conditions
Conditions
Ordered condition expressions and the Else fallback; connect each desired branch to its downstream block.

Input

ParameterTypeRequiredDescription
conditionsjsonNoOrdered condition entries with IDs, titles, and expressions.

Output

ParameterTypeDescription
conditionResultbooleanTrue when a connected condition or Else path was selected.
selectedPathjsonSelected downstream block metadata, or null when no path is selected.
selectedOptionstringSelected condition option ID

Usage Instructions

Evaluate JavaScript expressions in order and follow the first matching connected condition. Else is the fallback when no expression matches. Reference upstream outputs and workflow variables with exact TradingGoose tags. conditionResult reports whether a connected path was selected, including Else; it is not the value of the first expression. Without a matching connected path, conditionResult is false and selectedPath is null. Invalid expressions fail the block. Condition blocks do not support error-path recovery; validate uncertain data in an upstream Function block when recovery is required.

Notes

  • Category: blocks
  • Type: condition