Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional text selection for AI art projects, dynamically switching between two inputs based on boolean condition.
The Text Input Switch node is designed to facilitate conditional text selection within your AI art projects. This node allows you to dynamically choose between two text inputs based on a boolean condition, making it a powerful tool for creating adaptive and responsive text-based elements in your workflows. By leveraging this node, you can streamline the process of switching between different text inputs, ensuring that your projects can adapt to varying conditions and requirements seamlessly.
This parameter represents the first text input option. It is one of the two text strings that the node will switch between based on the boolean condition. The type of this input is determined by the TEXT_TYPE
variable, which is typically a string. This input is required and must be provided for the node to function correctly.
This parameter represents the second text input option. Similar to text_a
, it is a text string that the node will switch to if the boolean condition is not met. The type of this input is also determined by the TEXT_TYPE
variable, which is typically a string. This input is required and must be provided for the node to function correctly.
This parameter is a boolean value that determines which text input will be selected. If the boolean value is True
, the node will output text_a
. If the boolean value is False
, the node will output text_b
. This input is required and must be provided for the node to function correctly.
The output of this node is a single text string, determined by the boolean condition. If the boolean value is True
, the output will be the value of text_a
. If the boolean value is False
, the output will be the value of text_b
. This output allows for dynamic text selection based on the specified condition, making it a versatile tool for various text-based applications.
text_a
and text_b
are provided and are of the correct type to avoid any issues with the node's execution.text_a
parameter is required but has not been provided.text_a
parameter.text_b
parameter is required but has not been provided.text_b
parameter.boolean
parameter is required but has not been provided.True
or False
) for the boolean
parameter.TEXT_TYPE
variable.text_a
and text_b
are of the correct type (typically a string) and adjust them if necessary.© Copyright 2024 RunComfy. All Rights Reserved.