ComfyUI > Nodes > ComfyUI_XISER_Nodes > Prompts With Switches

ComfyUI Node: Prompts With Switches

Class Name

XIS_PromptsWithSwitches

Category
XISER_Nodes/UI_And_Control
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

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

Prompts With Switches Description

Manages multiple prompts with toggles for AI art, enabling efficient creative experimentation.

Prompts With Switches:

The XIS_PromptsWithSwitches node is designed to manage multiple prompts with the flexibility of enabling or disabling each one individually. This node is particularly useful for AI artists who want to experiment with different combinations of prompts to influence the output of their AI models. By allowing you to toggle prompts on or off, it provides a streamlined way to test various creative directions without manually editing the prompt list each time. This functionality is essential for efficiently iterating on designs and exploring a wide range of artistic possibilities. The node ensures that only the active prompts are processed, which helps in maintaining a clean and organized workflow.

Prompts With Switches Input Parameters:

positive_prompt1

This parameter allows you to input the first positive prompt, which is a phrase or sentence intended to guide the AI model towards a desired outcome. The prompt should be concise and clear to effectively influence the model's behavior. There is no explicit minimum or maximum value, but it is recommended to keep prompts succinct for better performance.

positive_prompt2

Similar to positive_prompt1, this parameter is for the second positive prompt. It can be enabled or disabled based on your needs, allowing you to test its impact on the output. The default state is enabled, but you can toggle it off if you wish to exclude it from processing.

positive_prompt3

This parameter functions like the previous positive prompts, providing an additional layer of input for more complex or nuanced guidance. It is also toggleable, giving you control over its inclusion in the final prompt list.

positive_prompt4

This input is for the fourth positive prompt, offering further customization in your prompt strategy. Like the others, it can be enabled or disabled, allowing you to experiment with its effect on the AI's output.

positive_prompt5

The fifth positive prompt input, which follows the same principles as the previous ones. It provides additional flexibility in crafting your prompt strategy and can be toggled on or off as needed.

enable_prompt2

A boolean parameter that determines whether positive_prompt2 is active. By default, it is set to true, meaning the prompt is included in the processing unless explicitly disabled.

enable_prompt3

This boolean parameter controls the activation of positive_prompt3. It is enabled by default, allowing the prompt to be part of the processing unless you choose to disable it.

enable_prompt4

A toggle for positive_prompt4, this boolean parameter lets you decide if the prompt should be included in the final list. It is enabled by default.

enable_prompt5

This parameter allows you to enable or disable positive_prompt5. By default, it is set to true, meaning the prompt is included unless you choose to turn it off.

negative_prompt1

This input is for the first negative prompt, which is used to steer the AI model away from certain outcomes. It is a multiline input, allowing for more detailed instructions. There is no explicit minimum or maximum value, but clarity and conciseness are recommended.

negative_prompt2

The second negative prompt input, which can be enabled or disabled. It provides additional control over the model's behavior by specifying undesired outcomes.

enable_neg_prompt2

A boolean parameter that controls the activation of negative_prompt2. It is enabled by default, meaning the prompt is included in the processing unless explicitly disabled.

Prompts With Switches Output Parameters:

combined_positive

This output parameter provides the combined result of all active positive prompts. It is a single string that concatenates the enabled prompts, ensuring they are formatted correctly with appropriate punctuation and line breaks. This output is crucial for feeding into AI models as it represents the final directive for generating desired outcomes.

negative_prompts

This output consists of the active negative prompts, combined into a single string. It serves as a counterbalance to the positive prompts, guiding the AI model away from unwanted results. This output is essential for refining the model's behavior and ensuring it aligns with your creative vision.

Prompts With Switches Usage Tips:

  • Experiment with different combinations of positive and negative prompts to see how they influence the AI's output. This can help you discover new creative directions.
  • Use the enable/disable switches to quickly test the impact of individual prompts without having to rewrite or delete them. This can save time and streamline your workflow.
  • Keep your prompts clear and concise to ensure they effectively guide the AI model. Overly complex or lengthy prompts may dilute their impact.

Prompts With Switches Common Errors and Solutions:

No prompts to display.

  • Explanation: This error occurs when all prompts are disabled or empty, resulting in no active prompts to process.
  • Solution: Ensure that at least one positive or negative prompt is enabled and contains text. Double-check the enable switches and input fields to confirm they are set correctly.

Prompts With Switches Related Nodes

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

Prompts With Switches