Visit ComfyUI Online for ready-to-use ComfyUI environment
Node for dynamic text input selection between two options or a third alternative based on conditions.
The Text2InputOr3rdOption
node is designed to provide flexibility in handling text inputs by allowing you to choose between two primary text inputs or a third alternative. This node is particularly useful when you need to dynamically switch between different text options based on specific conditions. It processes three text inputs and, depending on a specified condition, returns either the first two texts or the third text for both outputs. This functionality is beneficial for scenarios where you need to adapt text content dynamically, such as in AI-generated art descriptions or prompts, ensuring that the output aligns with the desired context or condition.
This parameter represents the first text input. It is a string that can be multiline, with a default value of "Text A". This text will be processed and potentially returned as one of the outputs depending on the condition specified by use_text_c_for_both
.
This parameter represents the second text input. Similar to text_a
, it is a string that can be multiline, with a default value of "Text B". This text will be processed and potentially returned as one of the outputs depending on the condition specified by use_text_c_for_both
.
This parameter represents the third text input. It is a string that can be multiline, with a default value of "Text C". This text will be processed and can be used to replace both text_a
and text_b
in the output if the condition specified by use_text_c_for_both
is met.
This parameter is a boolean option that determines whether text_c
should replace both text_a
and text_b
in the output. It accepts two values: "true" or "false", with a default value of "false". If set to "true", text_c
will be used for both outputs; otherwise, text_a
and text_b
will be used as the outputs.
This hidden parameter is used for additional PNG information. It is not directly interacted with by the user but is utilized internally for processing the text inputs.
This hidden parameter represents the prompt information. It is used internally to process the text inputs and is not directly interacted with by the user.
This output parameter returns the processed version of the text_a
input. If use_text_c_for_both
is set to "true", this will instead return the processed text_c
.
This output parameter returns the processed version of the text_b
input. If use_text_c_for_both
is set to "true", this will instead return the processed text_c
.
use_text_c_for_both
parameter to dynamically switch between using the first two text inputs or a single third text input for both outputs, depending on your specific needs.text_a
, text_b
, and text_c
) are well-formatted and relevant to the context in which they will be used to achieve the best results.use_text_c_for_both
parameter is not set correctly.use_text_c_for_both
parameter and ensure it is set to "true" or "false" as needed for your specific use case.© Copyright 2024 RunComfy. All Rights Reserved.