Documentation Index
Fetch the complete documentation index at: https://docs.promptjuggler.com/llms.txt
Use this file to discover all available pages before exploring further.
Routes data down one of two paths based on a condition. The If node takes an input value, a comparand, and an operator. If the condition is true, data flows through the true output. Otherwise, the false output.
Available operators: Eq, Gt, Gte, IsEmpty, IsNumeric, Lt, Lte, Neq, Regex.
Wire the data you want to gate into the target handle. Wire the value you want to test into the input handle. The comparand can come from another node or a Value node.
Switch
Routes data down one of several named paths based on matching. The Switch node has two inputs: the value to match against and the data to forward. Define a list of possible match values – when the match input hits one, the data flows through that output. Unmatched inputs flow through the default output.
Useful for routing different intents, categories, or statuses to specialised processing paths.
Skipped branches
When a control flow node doesn’t activate an output (the If condition is false, or a Switch case doesn’t match), the entire downstream branch is marked as skipped. Skipped nodes don’t execute and produce no output.
This plays nicely with multi-input wiring. When several edges feed into the same input handle, skipped sources are simply ignored. Say you have a Switch that routes a support ticket to either a “billing” branch or a “technical” branch, and both branches eventually wire into the same summary prompt – only the active branch’s output arrives. No nulls, no empty values, no special handling needed.