Nodes/comfyui_dynamic/dynamic_switch_any (branch, case, select)
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.

By inkbottle-9·Created 8 months ago·Updated about a month ago· 0
dynamic_switch_any (branch, case, select)
  • default
  • result
index0
cases_count2
Categorydynamic/utils

Inputs (3)

NameTypeDefaultDescription
indexINT0-1–100The index of the case to return. Must be between 0 and cases_count - 1, else the default value will be returned.
cases_countINT20–100The 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)

NameTypeDescription
result*The value of the case at the specified index.