ComfyUI > Nodes > WAS Node Suite > Text Input Switch

ComfyUI Node: Text Input Switch

Class Name

Text Input Switch

Category
WAS Suite/Logic
Author
WASasquatch (Account age: 4688days)
Extension
WAS Node Suite
Latest Updated
2024-08-25
Github Stars
1.07K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite 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 Input Switch Description

Facilitates conditional text selection for AI art projects, dynamically switching between two inputs based on boolean condition.

Text Input Switch:

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.

Text Input Switch Input Parameters:

text_a

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.

text_b

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.

boolean

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.

Text Input Switch Output Parameters:

TEXT_TYPE

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 Input Switch Usage Tips:

  • Use the Text Input Switch node to create dynamic and adaptive text elements in your AI art projects, allowing for seamless transitions between different text inputs based on specific conditions.
  • Ensure that both text_a and text_b are provided and are of the correct type to avoid any issues with the node's execution.
  • Utilize the boolean parameter to control the text selection logic, enabling you to create more complex and responsive workflows.

Text Input Switch Common Errors and Solutions:

Missing required input: text_a

  • Explanation: The text_a parameter is required but has not been provided.
  • Solution: Ensure that you provide a valid text string for the text_a parameter.

Missing required input: text_b

  • Explanation: The text_b parameter is required but has not been provided.
  • Solution: Ensure that you provide a valid text string for the text_b parameter.

Missing required input: boolean

  • Explanation: The boolean parameter is required but has not been provided.
  • Solution: Ensure that you provide a valid boolean value (True or False) for the boolean parameter.

Invalid text type

  • Explanation: The provided text inputs are not of the correct type as determined by the TEXT_TYPE variable.
  • Solution: Verify that the text inputs text_a and text_b are of the correct type (typically a string) and adjust them if necessary.

Text Input Switch Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
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.