StyloDocs
Workflow blocks

Condition

Branch the workflow based on a boolean expression

View as Markdown

system/condition — Branch the workflow based on a boolean expression.

Where it appears

The Condition block lives in the Logic & control group of the Workflow Builder.

Fields

FieldTypeRequiredDefaultDescription
conditionconditionsYesBoolean expression evaluated against upstream node outputs.

Operators: ===, !==, >, <, >=, <=, !, &&, || Methods: .includes(), .startsWith(), .endsWith(), .toLowerCase() Helpers: containsAny, containsAll, isOneOf, isNoneOf, matches, isPresent, isEmpty | | trueLabel | text | No | True | Display name for the branch taken when the condition evaluates to true. Shown on the canvas edge and in logs. | | falseLabel | text | No | False | Display name for the branch taken when the condition evaluates to false. Shown on the canvas edge and in logs. |

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Condition.field>.

NameTypeDescription
conditionbooleanCondition result
routestringSelected route
routeLabelstringRoute label

Example

A minimal configuration for this block:

{
  "type": "system/condition",
  "config": {
    "condition": "<PreviousStep.field>",
    "trueLabel": "True",
    "falseLabel": "False"
  }
}

Limits and failure modes

  • Required field (condition) must be set, or the block fails validation before it runs.

On this page