ComfyUI > Nodes > Comfyui_LG_Tools > šŸŽˆMuterSwitcher

ComfyUI Node: šŸŽˆMuterSwitcher

Class Name

MuterSwitcher

Category
šŸŽˆLAOGOU/Switch
Author
LAOGOU-666 (Account age: 442days)
Extension
Comfyui_LG_Tools
Latest Updated
2025-06-06
Github Stars
0.08K

How to Install Comfyui_LG_Tools

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

šŸŽˆMuterSwitcher Description

Flexible data flow control node for conditional logic in AI art projects, toggling between outputs based on boolean conditions.

šŸŽˆMuterSwitcher:

The MuterSwitcher node is designed to provide a flexible mechanism for controlling the flow of data based on a boolean condition. It allows you to specify different outputs depending on whether the condition is true or false, making it a versatile tool for managing conditional logic within your AI art projects. This node is particularly useful when you need to toggle between different data streams or configurations dynamically, based on specific criteria. By leveraging the MuterSwitcher, you can streamline your workflow and ensure that the appropriate data is processed under the right conditions, enhancing the efficiency and adaptability of your creative processes.

šŸŽˆMuterSwitcher Input Parameters:

boolean

The boolean parameter is a critical input that determines the flow of data through the node. It is a boolean value, meaning it can be either True or False. The default value is True. When set to True, the node will output the values associated with the ON_TRUE and on_true parameters. Conversely, when set to False, it will output the values associated with the ON_FALSE and on_false parameters. This parameter is essential for controlling which set of outputs is activated, allowing for dynamic switching based on your specific needs.

ON_TRUE

The ON_TRUE parameter is an optional input that represents the data to be output when the boolean parameter is set to True. It can accept any data type, providing flexibility in what you choose to output. This parameter is crucial for defining the output that should be used when the condition is met, ensuring that the correct data is passed through the node.

on_true

Similar to ON_TRUE, the on_true parameter is an optional input that also represents data to be output when the boolean parameter is True. It allows for additional data to be output alongside ON_TRUE, offering more comprehensive control over the node's behavior when the condition is satisfied.

ON_FALSE

The ON_FALSE parameter is an optional input that specifies the data to be output when the boolean parameter is set to False. Like ON_TRUE, it can accept any data type, allowing you to define what should be output when the condition is not met. This parameter is vital for ensuring that the appropriate data is used when the boolean condition is false.

on_false

The on_false parameter is an optional input that complements ON_FALSE by providing additional data to be output when the boolean parameter is False. It works in tandem with ON_FALSE to offer a complete set of outputs for when the condition is not satisfied, enhancing the node's flexibility and utility.

šŸŽˆMuterSwitcher Output Parameters:

OUTPUT

The OUTPUT parameter is the primary output of the node, representing the data selected based on the boolean condition. When the condition is True, it outputs the value from ON_TRUE; when False, it outputs the value from ON_FALSE. This output is crucial for directing the correct data flow based on the specified condition.

output

The output parameter works alongside OUTPUT to provide additional data based on the boolean condition. It outputs the value from on_true when the condition is True and from on_false when False. This parameter ensures that all necessary data is output in accordance with the condition, offering a comprehensive solution for conditional data management.

šŸŽˆMuterSwitcher Usage Tips:

  • Use the boolean parameter to dynamically control which data set is output, allowing for flexible and responsive workflows.
  • Ensure that all optional inputs (ON_TRUE, on_true, ON_FALSE, on_false) are correctly configured to avoid unexpected results and to fully utilize the node's capabilities.

šŸŽˆMuterSwitcher Common Errors and Solutions:

Missing ON_TRUE or ON_FALSE

  • Explanation: If the boolean condition is True and ON_TRUE is not provided, or if it is False and ON_FALSE is not provided, the node may not output the expected data.
  • Solution: Ensure that all necessary inputs are provided for the condition you are testing. Double-check that ON_TRUE and ON_FALSE are set appropriately based on the boolean value.

Incorrect Data Type

  • Explanation: Providing an incorrect data type for any of the inputs can lead to errors or unexpected behavior.
  • Solution: Verify that the data types of all inputs match the expected types. Use consistent data types across your workflow to prevent compatibility issues.

šŸŽˆMuterSwitcher Related Nodes

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