Visit ComfyUI Online for ready-to-use ComfyUI environment
Streamline text input selection with versatile 4-way switch for conditional logic in workflows.
The CR Text Input Switch (4 way) node is designed to streamline the selection process among multiple text inputs within your workflow. This node allows you to choose one of four possible text inputs based on a specified integer value, making it highly versatile for various conditional logic scenarios. By providing a simple yet effective mechanism to switch between different text inputs, it enhances the flexibility and control over your text-based data processing tasks. This node is particularly useful in complex workflows where different text inputs need to be dynamically selected and processed based on specific conditions or criteria.
This parameter determines which text input will be selected. It accepts an integer value ranging from 1 to 4, with a default value of 1. The selected integer value directly influences which of the four optional text inputs (text1, text2, text3, or text4) will be chosen for output. For example, if the value is set to 2, the node will output the text provided in the text2 parameter.
This is an optional text input parameter. When the Input parameter is set to 1, the value provided in text1 will be selected and output by the node. This parameter is forced to be input, ensuring that a value must be provided if it is to be used.
This is an optional text input parameter. When the Input parameter is set to 2, the value provided in text2 will be selected and output by the node. Similar to text1, this parameter is also forced to be input, requiring a value if it is to be utilized.
This is an optional text input parameter. When the Input parameter is set to 3, the value provided in text3 will be selected and output by the node. This parameter is forced to be input, necessitating a value if it is to be used.
This is an optional text input parameter. When the Input parameter is set to 4, the value provided in text4 will be selected and output by the node. Like the other text parameters, this one is also forced to be input, meaning a value must be provided if it is to be utilized.
This output parameter provides the text input that was selected based on the Input parameter. It will be one of the values from text1, text2, text3, or text4, depending on the integer value specified in the Input parameter. This allows for dynamic text selection within your workflow.
This output parameter provides a URL link to the help documentation for the CR Text Input Switch (4 way) node. The link directs you to a detailed guide on the node's usage, which can be found at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Logic-Nodes#cr-text-input-switch-4-way
. This is useful for users who need additional information or troubleshooting assistance.
© Copyright 2024 RunComfy. All Rights Reserved.