Flow Controlstable
Switch
Switch (flow_switch) is a Flow Control node. Semantics: flow.switch. Ports and options below are generated from the syntax registry.
Overview
- Kind id
- flow_switch
- Semantics
- flow.switch
- Source
- CORE_NODE_REGISTRY
Detailed guidance for this kind is still being written. Ports and options below come from the syntax registry.
Ports
| Id | Dir | Type | Label |
|---|---|---|---|
| exec_in | in | execution | - |
| selector | in | data_any | Selector |
| case0 | in | data_any | Case 0 value |
| case1 | in | data_any | Case 1 value |
| case_0 | out | execution | Case 0 |
| case_1 | out | execution | Case 1 |
| default_exec | out | execution | Default |
| exec_out | out | execution | - |
Options
| Id | Type | Default | Notes |
|---|---|---|---|
| enumType | string | When set, case values are member names (OK) and emit via EnumMemberAccess |