Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional text input switching based on boolean value for dynamic selection between two inputs.
The CR Text Input Switch JK node is designed to facilitate conditional text input switching based on a boolean value. This node is particularly useful when you need to dynamically select between two different text inputs depending on a condition. By leveraging this node, you can streamline workflows that require conditional text processing, ensuring that the appropriate text input is used based on the specified boolean condition. This can be especially beneficial in scenarios where text inputs need to be toggled or switched in response to certain criteria, enhancing the flexibility and efficiency of your AI art projects.
The boolean_value
parameter is a boolean input that determines which text input will be selected. If set to True
, the node will select the text_true
input; if set to False
, it will select the text_false
input. This parameter is crucial for controlling the conditional logic of the node. The default value is False
.
The text_false
parameter is a string input that represents the text to be used when the boolean_value
is False
. This input allows you to specify the text that should be selected under the false condition. The default value is an empty string (""
).
The text_true
parameter is a string input that represents the text to be used when the boolean_value
is True
. This input allows you to specify the text that should be selected under the true condition. The default value is an empty string (""
).
The STRING
output is the selected text input based on the boolean_value
. If boolean_value
is True
, the output will be the value of text_true
; if boolean_value
is False
, the output will be the value of text_false
. This output is essential for passing the conditionally selected text to subsequent nodes in your workflow.
The BOOLEAN
output is the value of the boolean_value
parameter. This output allows you to verify the condition that was used to select the text input, providing transparency and traceability in your workflow.
boolean_value
parameter to dynamically switch between different text inputs based on specific conditions or criteria in your project.text_false
and text_true
parameters are properly set with the desired text inputs to avoid unexpected results.text_false
or text_true
) are not provided.text_false
and text_true
parameters are set with valid string inputs.boolean_value
parameter is not set to a valid boolean value.boolean_value
parameter is correctly set to either True
or False
.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.