Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.twine.se/llms.txt

Use this file to discover all available pages before exploring further.

Picks one of several named branches based on a value computed by an inner graph. Drill in to edit the inner graph — it runs once per evaluation and should emit a string. That string is matched against the Name of the Flow Branch nodes attached to this switch. Exactly one branch is entered per run; the rest are pruned (sharing nodes between branches is fine — only nodes reachable only from losing branches are skipped). If the inner graph emits nil, a non-string, or a name with no matching branch, the flow halts with an error — there’s no implicit default. Add an explicit "default" branch yourself if you want one.

Configuration

  • Subject assign (optional) — assigns key whose value becomes the subject for Attribute nodes inside the inner graph. Typical pattern: point at the employee / schedule you’re branching on so you can read its dated properties directly.

Example

Branch on an employee’s position: inner graph reads position_name via an Attribute node, ends on that value. Attach Flow Branch nodes named "Manager", "Engineer", "default" (one for any catch-all).

Ports