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
dynamic
required
The value to route. Required. Its type determines the type of both output ports.
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
dynamic
Receives the input value when the condition is met.
dynamic
Receives the input value when the condition is not met.
Configuration
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.