ComfyUI > Nodes > ComfyUI_XISER_Nodes > Multi Prompt Switch

ComfyUI Node: Multi Prompt Switch

Class Name

XIS_MultiPromptSwitch

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

Multi Prompt Switch Description

Manages multiple prompts dynamically, enabling/disabling them to streamline creative workflows.

Multi Prompt Switch:

The XIS_MultiPromptSwitch node is designed to manage multiple prompts in a flexible and efficient manner, allowing you to enable or disable specific prompts based on your creative needs. This node is particularly useful in scenarios where you want to dynamically control which prompts are active, providing a streamlined way to handle complex prompt configurations. By offering the ability to toggle prompts on and off, it enhances your workflow by reducing clutter and focusing on the prompts that are most relevant to your current project. This node is essential for AI artists who need to manage multiple prompt inputs and want to maintain a clean and organized prompt structure.

Multi Prompt Switch Input Parameters:

positive_prompt2

This parameter allows you to input the second positive prompt. It is a string that can be customized to fit your creative needs. The default value is an empty string, and it is enabled by default. This prompt will be considered in the output if its corresponding enable parameter is set to true.

enable_prompt2

This boolean parameter controls whether the second positive prompt is active. When set to true, the prompt is included in the output; when false, it is ignored. The default value is true, allowing the prompt to be active unless specified otherwise.

positive_prompt3

This parameter is for the third positive prompt, similar to positive_prompt2. It accepts a string input and is enabled by default. The prompt is included in the output if its enable parameter is true.

enable_prompt3

This boolean parameter determines the activation of the third positive prompt. It defaults to true, meaning the prompt is active unless you choose to disable it.

positive_prompt4

This parameter allows you to input the fourth positive prompt. It functions like the previous positive prompts, accepting a string input and being enabled by default.

enable_prompt4

This boolean parameter controls the activation of the fourth positive prompt. It defaults to true, ensuring the prompt is active unless you disable it.

positive_prompt5

This parameter is for the fifth positive prompt, accepting a string input. It is enabled by default and will be included in the output if its enable parameter is true.

enable_prompt5

This boolean parameter determines whether the fifth positive prompt is active. It defaults to true, allowing the prompt to be active unless specified otherwise.

negative_prompt1

This parameter allows you to input the first negative prompt. It is a string that can be customized to fit your creative needs. The default value is an empty string, and it is enabled by default.

negative_prompt2

This parameter is for the second negative prompt, similar to negative_prompt1. It accepts a string input and is enabled by default.

enable_neg_prompt2

This boolean parameter controls whether the second negative prompt is active. When set to true, the prompt is included in the output; when false, it is ignored. The default value is true.

negative_prompt3

This parameter allows you to input the third negative prompt. It functions like the previous negative prompts, accepting a string input and being enabled by default.

enable_neg_prompt3

This boolean parameter determines the activation of the third negative prompt. It defaults to true, meaning the prompt is active unless you choose to disable it.

negative_prompt4

This parameter is for the fourth negative prompt, accepting a string input. It is enabled by default and will be included in the output if its enable parameter is true.

enable_neg_prompt4

This boolean parameter controls the activation of the fourth negative prompt. It defaults to true, ensuring the prompt is active unless you disable it.

negative_prompt5

This parameter allows you to input the fifth negative prompt. It functions like the previous negative prompts, accepting a string input and being enabled by default.

enable_neg_prompt5

This boolean parameter determines whether the fifth negative prompt is active. It defaults to true, allowing the prompt to be active unless specified otherwise.

Multi Prompt Switch Output Parameters:

prompts

This output parameter provides a list of active prompts based on the enabled status of each input prompt. It includes both positive and negative prompts that are enabled, offering a consolidated view of the prompts that will be used in your project. This output is crucial for understanding which prompts are currently active and will influence the AI's behavior.

Multi Prompt Switch Usage Tips:

  • Use the enable parameters to quickly toggle prompts on and off without needing to delete or rewrite them, which can save time and maintain your workflow's flexibility.
  • Organize your prompts by priority or theme, and use the enable switches to focus on specific aspects of your project, allowing for more targeted and efficient prompt management.

Multi Prompt Switch 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 prompt is enabled and contains text. Check the enable parameters and input valid prompt strings to resolve this issue.

Multi Prompt Switch 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.

Multi Prompt Switch