ComfyUI > Nodes > ComfyUI-JakeUpgrade > Text Input Switch JKšŸ‰

ComfyUI Node: Text Input Switch JKšŸ‰

Class Name

CR Text Input Switch JK

Category
šŸ‰ JK/šŸ”€ Logic
Author
jakechai (Account age: 1902days)
Extension
ComfyUI-JakeUpgrade
Latest Updated
2025-05-20
Github Stars
0.08K

How to Install ComfyUI-JakeUpgrade

Install this extension via the ComfyUI Manager by searching for ComfyUI-JakeUpgrade
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JakeUpgrade 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 Input Switch JKšŸ‰ Description

Facilitates conditional text input switching based on boolean value for dynamic selection between two inputs.

Text Input Switch JKšŸ‰:

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.

Text Input Switch JKšŸ‰ Input Parameters:

boolean_value

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.

text_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 ("").

text_true

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 ("").

Text Input Switch JKšŸ‰ Output Parameters:

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.

BOOLEAN

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.

Text Input Switch JKšŸ‰ Usage Tips:

  • Use the boolean_value parameter to dynamically switch between different text inputs based on specific conditions or criteria in your project.
  • Ensure that the text_false and text_true parameters are properly set with the desired text inputs to avoid unexpected results.

Text Input Switch JKšŸ‰ Common Errors and Solutions:

Missing text input

  • Explanation: One or both of the text inputs (text_false or text_true) are not provided.
  • Solution: Ensure that both text_false and text_true parameters are set with valid string inputs.

Invalid boolean value

  • Explanation: The boolean_value parameter is not set to a valid boolean value.
  • Solution: Verify that the boolean_value parameter is correctly set to either True or False.

Text Input Switch JKšŸ‰ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JakeUpgrade
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 Playground, enabling artists to harness the latest AI tools to create incredible art.