ComfyUI  >  Nodes  >  Mikey Nodes >  Text 2 Inputs Or 3rd Option Instead (Mikey)

ComfyUI Node: Text 2 Inputs Or 3rd Option Instead (Mikey)

Class Name

Text2InputOr3rdOption

Category
Mikey/Text
Author
bash-j (Account age: 4196 days)
Extension
Mikey Nodes
Latest Updated
6/15/2024
Github Stars
0.1K

How to Install Mikey Nodes

Install this extension via the ComfyUI Manager by searching for  Mikey Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Mikey Nodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text 2 Inputs Or 3rd Option Instead (Mikey) Description

Node for dynamic text input selection between two options or a third alternative based on conditions.

Text 2 Inputs Or 3rd Option Instead (Mikey):

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.

Text 2 Inputs Or 3rd Option Instead (Mikey) Input Parameters:

text_a

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.

text_b

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.

text_c

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.

use_text_c_for_both

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.

extra_pnginfo

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.

prompt

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.

Text 2 Inputs Or 3rd Option Instead (Mikey) Output Parameters:

text_a

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.

text_b

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.

Text 2 Inputs Or 3rd Option Instead (Mikey) Usage Tips:

  • Use the 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.
  • Ensure that your text inputs (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.

Text 2 Inputs Or 3rd Option Instead (Mikey) Common Errors and Solutions:

Text input is not processed correctly

  • Explanation: This error may occur if the text inputs contain unsupported characters or formatting issues.
  • Solution: Ensure that your text inputs are properly formatted and do not contain any unsupported characters.

Unexpected output values

  • Explanation: This error may occur if the use_text_c_for_both parameter is not set correctly.
  • Solution: Verify the value of the use_text_c_for_both parameter and ensure it is set to "true" or "false" as needed for your specific use case.

Text 2 Inputs Or 3rd Option Instead (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.