Visit ComfyUI Online for ready-to-use ComfyUI environment
Streamline workflow by dynamically selecting between two text inputs based on conditions for AI art projects.
The CR Text Input Switch node is designed to streamline your workflow by allowing you to dynamically select between two text inputs based on a specified condition. This node is particularly useful when you need to switch between different text options in your AI art projects, providing flexibility and control over the text data being used. By leveraging this node, you can easily manage and automate text input selection, enhancing the efficiency and adaptability of your creative processes.
This parameter determines which text input will be selected. It accepts an integer value with a minimum of 1 and a maximum of 2. The default value is 1. When set to 1, the node will select the first text input (text1
), and when set to 2, it will select the second text input (text2
). This parameter is crucial for controlling the flow of text data in your workflow.
This is the first optional text input. It accepts a string value and is forced to be provided if used. This text will be selected if the Input
parameter is set to 1. This parameter allows you to specify the first text option that can be dynamically chosen based on the Input
value.
This is the second optional text input. Similar to text1
, it accepts a string value and is forced to be provided if used. This text will be selected if the Input
parameter is set to 2. This parameter allows you to specify the second text option that can be dynamically chosen based on the Input
value.
This output provides the selected text input based on the value of the Input
parameter. It will return either text1
or text2
, depending on whether Input
is set to 1 or 2, respectively. This output is essential for passing the chosen text to subsequent nodes in your workflow.
This output provides a URL to the help documentation for the CR Text Input Switch node. The URL is https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Logic-Nodes#cr-text-input-switch
. This output is useful for accessing detailed information and guidance on using the node effectively.
Input
parameter is set correctly to switch between the desired text inputs (text1
or text2
).text1
or text2
) is not provided.text1
and text2
are provided if they are being used in the node configuration.Input
parameter is set to a value outside the allowed range (1 to 2).Input
parameter to a valid integer value within the range of 1 to 2.© Copyright 2024 RunComfy. All Rights Reserved.