Condition

Logic & Control condition Starter

Branch the flow based on logical conditions

Overview

The Condition node evaluates logical expressions to determine which path the conversation should follow. Use it to branch your flow based on user input, API responses, or other variables.

How It Works

  1. Define Conditions: Set up one or more conditions comparing values (supports Handlebars templates like {{user_age}} or {{api.status}})
  2. Group Logic: Organize conditions into groups and combine them with AND/OR operators
  3. Evaluate: The node evaluates all conditions and determines the result
  4. Route: Flow continues through either the True or False output based on the result

Output Variable

The node stores its result as a string:

Result: {{condition}}
(Value is "true" or "false")

Configuration Fields

Conditions conditions Required

Define the logical conditions to evaluate.

Show details

How it works:

Organize conditions into groups with AND/OR logic. Each condition compares two operands using an operator.

Comparison operators:

  • equals, not_equals
  • greater_than, less_than
  • greater_than_or_equal, less_than_or_equal
  • contains, not_contains
  • starts_with, ends_with
  • is_empty, is_not_empty

Group logic:

  • AND - All conditions in group must be true
  • OR - At least one condition in group must be true

Supports Handlebars for dynamic values:

{{variable_name}}

Output Variables

This node stores its output in a variable that can be referenced in subsequent nodes using the {{variable}} syntax.

{{variable}} string

Condition result ("true" or "false")

Connection Points

Input
Accepts incoming connections from other nodes
✓ True true
All logical conditions evaluated to true
✗ False false
One or more logical conditions evaluated to false