ComfyUI Node
dynamic_switch_any (branch, case, select)
This node is used to switch between multiple cases by index. It accepts an index as input and returns the value of the case at that index, or returns the default value (specified or None) if out of range.
dynamic_switch_any (branch, case, select)
- default
- result
◄index0►
◄cases_count2►
Categorydynamic/utils
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 0-1–100 | The index of the case to return. Must be between 0 and cases_count - 1, else the default value will be returned. |
| cases_count | INT | 20–100 | The number of cases for this node. Must be between 0 and 100. |
| defaultopt | * | The default value to return if no cases match. None if not specified. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | * | The value of the case at the specified index. |