ComfyUI > Nodes > ComfyUI-Creepy_nodes > Text Switch (Creepybits)

ComfyUI Node: Text Switch (Creepybits)

Class Name

Textswitch

Category
Creepybits/Switches
Author
Creepybits (Account age: 2146days)
Extension
ComfyUI-Creepy_nodes
Latest Updated
2025-12-07
Github Stars
0.02K

How to Install ComfyUI-Creepy_nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-Creepy_nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Creepy_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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Switch (Creepybits) Description

Dynamic text selection based on input, managing multiple text outputs with up to three options, ideal for creative projects.

Text Switch (Creepybits):

The Textswitch node is a versatile tool designed to dynamically select and output one of several text options based on a given input. This node is particularly useful in scenarios where you need to switch between different text strings depending on certain conditions or inputs. It simplifies the process of managing multiple text outputs by allowing you to specify up to three different text options and then choose which one to output based on an integer input. This functionality can be beneficial in creative projects where text variations are needed, such as generating different prompts or messages based on user interaction or other criteria. The node also provides a whimsical touch by including a "Proverb of the day" in its output, adding a bit of humor and personality to its functionality.

Text Switch (Creepybits) Input Parameters:

Input

The Input parameter is an integer that determines which text option will be selected and output by the node. It accepts values ranging from 1 to 3, with a default value of 1. This parameter is crucial as it directly influences the node's behavior by specifying which of the optional text inputs (text1, text2, or text3) should be returned. If the input value is outside the specified range, the node will return None for the text output, ensuring that only valid selections are processed.

text1

The text1 parameter is an optional string input that represents the first text option available for selection. When the Input parameter is set to 1, this text will be chosen and returned by the node. This parameter allows you to define a specific text string that can be dynamically selected based on the input conditions.

text2

The text2 parameter is an optional string input that represents the second text option available for selection. When the Input parameter is set to 2, this text will be chosen and returned by the node. This parameter provides flexibility in defining multiple text outputs that can be switched between as needed.

text3

The text3 parameter is an optional string input that represents the third text option available for selection. When the Input parameter is set to 3, this text will be chosen and returned by the node. This parameter further extends the node's capability to handle multiple text variations, making it a powerful tool for dynamic text management.

Text Switch (Creepybits) Output Parameters:

STRING

The STRING output parameter is the selected text string based on the Input parameter. It represents the actual text that is chosen from the available options (text1, text2, or text3) and returned by the node. If the input value is invalid, this output will be None, indicating that no valid text was selected.

show_help

The show_help output parameter is a string that contains a "Proverb of the day." This output adds a humorous and light-hearted element to the node's functionality, providing a fun and engaging experience for users. It serves as a constant output regardless of the input value, ensuring that users always receive a bit of entertainment along with their selected text.

Text Switch (Creepybits) Usage Tips:

  • Ensure that the Input parameter is set within the valid range of 1 to 3 to avoid receiving a None output for the text string.
  • Utilize the optional text parameters (text1, text2, text3) to define different text variations that can be dynamically selected based on the input conditions.
  • Leverage the show_help output to add a touch of humor to your project, making interactions with the node more engaging and enjoyable.

Text Switch (Creepybits) Common Errors and Solutions:

Invalid Input Value

  • Explanation: The Input parameter is set to a value outside the valid range of 1 to 3. - Solution: Adjust the Input parameter to be within the specified range to ensure a valid text output is selected.

None Output for STRING

  • Explanation: The Input parameter is set to a value that does not correspond to any of the defined text options, resulting in a None output.
  • Solution: Verify that the Input parameter is correctly set to 1, 2, or 3, and ensure that the corresponding text option is defined.

Text Switch (Creepybits) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Creepy_nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.