Skip to main content
If / Else is an LLM-powered conditional branch. It evaluates a natural-language condition and routes the input value to either the true or false output. The value flows through unchanged — the model only decides the route. Both outputs inherit their type from the input, so downstream nodes receive the same data type.

When to use

  • Filter generated images so only on-brand ones continue downstream
  • Gate a workflow on a quality check before an expensive step runs
  • Route user input to different handlers by topic
  • Drop items that don’t match a natural-language rule

Inputs

Input
dynamic
required
The value to route. Required. Its type determines the type of both output ports.
Evaluation context
any
Extra context the model may consider when evaluating the condition — text, images, or any mix. This context is not routed. Optional, accepts multiple inputs and an array.

Outputs

True
dynamic
Receives the input value when the condition is met.
False
dynamic
Receives the input value when the condition is not met.

Configuration

condition
string
default:""
The natural-language rule the model evaluates against the input. Required.
If / Else runs on a selectable model (default Gemini 2.5 Flash) to evaluate the condition and consumes credits when it runs.