Text Index Switch(textIndexSwitch)
Text Index Switch (class textIndexSwitch) is an index-based switch for string values.
text Index Switch
Text Index Switch (class textIndexSwitch) is an index-based switch for string values. It belongs to the EasyUse/Logic/Index Switch category and outputs the selected text as a STRING.
Inputs
The current source code declares no connectable inputs. The node’s selection is controlled from the widgets shown in the ComfyUI editor; the node returns the text value that corresponds to the active selection.
Outputs
- STRING — The currently selected text value.
Usage Notes
Use this node when a downstream node needs one string chosen from a set of alternatives. Only the selected text is passed through, so unselected alternatives have no effect on the output.
Because the node currently has no graph inputs, its selection cannot be changed by an upstream value. The selected index/text is set directly on the node widget. For a switch controlled by another node, use the appropriate Index Switch node from the same category.
Comments
Sign in with GitHub to join the discussion.