Evaluate ordered cases live, force a branch manually or through Pick by name, return case-specific typed values, merge the winner on Result, or rerun an earlier stage within a strict bound.
Where: Flowgen → Add → Flow control → Route & Switch
Key ideas
- Main, evidence, and selector: Main input is what passes through; Check with supplies extra condition evidence; Pick by name chooses a case from a wire/group/App dropdown.
- Case returns and doors: A route case can return its own connected value or fall back to Main input. Its door is case-specific; Result emits whichever door opened.
- Auto or forced selection: Auto evaluates top-to-bottom. Choosing a case forces it. A Pick by name wire owns and locks the same selection.
- Bounded run again: A retry case reruns an earlier anchor from 1–5 times and has no return/door; it is not a general feedback cycle.
Steps
- Connect the stream to Main input and optional QA/evidence to Check with.
- Add and name ordered cases from narrowest to broadest; keep Otherwise last.
- Connect per-case return values when a branch should emit something other than Main input.
- Use Auto, force one case, or wire/expose Pick by name.
- Connect Result for the winner or a specific door for branch-only work.
- Use Run again with a strict 1–5 cap for bounded quality retry.
- Test every case, fallback, override, return type, and List row.
Current sockets
- Main input.
- Check with.
- Pick by name.
- Per-case return input.
- Per-case door.
- Result (winner).
Current-value integration
List iterations isolate each row’s selector and media returns. Extract / Merge connected to Result follows the actual runtime winner and can expose a strict typed output.
Tips
- Always include an explicit fallback/error branch.
- Keep conditions simple; extract/normalize values before the Route when the source is deeply nested.
Troubleshooting
The wrong branch runs
Check case order and Override/Pick by name. A broad earlier condition or stale force takes precedence.
Result forwards Main input
Connect a case-specific return to the winning row; empty returns intentionally pass Main input.