logoNodeDrop
Nodes

Logic & Flow Control

Nodes that control workflow execution flow

Logic & Flow Control Nodes

These nodes control how data flows through your workflow.

If/Else

Routes data based on a condition. Has two outputs: true and false.

Properties:

PropertyTypeDescription
ConditionexpressionCondition to evaluate

Example:

{{ $json.status === "active" }}
{{ $json.amount > 100 }}
{{ $json.email.includes("@company.com") }}

Switch

Routes data to multiple outputs based on rules.

Properties:

PropertyTypeDescription
ModeselectRules or Expression
RulesarrayConditions for each output
FallbackselectOutput for non-matching items

Loop

Iterates over items one at a time, useful for rate-limited APIs.

Properties:

PropertyTypeDescription
Batch SizenumberItems per iteration
Pause BetweennumberDelay in ms between batches

Split

Splits an array field into individual items.

Properties:

PropertyTypeDescription
Field to SplitstringArray field name
Include Other FieldsbooleanKeep other fields

Example: Input: { "items": [1, 2, 3] } Output: Three items: { "item": 1 }, { "item": 2 }, { "item": 3 }

Merge

Combines data from multiple inputs.

Properties:

PropertyTypeDescription
ModeselectAppend, Merge by Key, etc.
Join FieldstringField to match on (for merge)

Modes:

  • Append - Combine all items into one array
  • Merge by Key - Match items by a field
  • Wait - Wait for all inputs before continuing

Wait

Pauses workflow execution.

Properties:

PropertyTypeDescription
Wait TypeselectDuration or Until Time
DurationnumberSeconds to wait
UntildatetimeSpecific time to resume

Aggregate

Combines multiple items into a single item.

Properties:

PropertyTypeDescription
AggregateselectAll Items, Field Values
Output FieldstringName for aggregated data

Example: Input: [{ "n": 1 }, { "n": 2 }] Output: { "items": [{ "n": 1 }, { "n": 2 }] }

On this page