NARRATIVE
Switch
Routes the incoming value to one of its case outputs. Wire a Get → Switch.value, list the case values to match. Each case becomes an output port that fires only when the incoming value matches it. Wire a port onto a downstream gate to apply that branch.
Use cases
Drive type-specific behaviour : on Warning apply a font + a colour, on Error change just the border, etc.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Cases | — | No | List of values to match. Each value becomes an output port. |
→ In-game result
{
"action": "Switch",
"cases": "..."
} In-game result
The matching case's port fires (truthy) ; every other port stays nil. The implicit `Default` port fires when no case matches.