ComfyUI  >  Nodes  >  JPS Custom Nodes for ComfyUI >  Enable Disable Switch (JPS)

ComfyUI Node: Enable Disable Switch (JPS)

Class Name

Enable Disable Switch (JPS)

Category
JPS Nodes/Switches
Author
JPS (Account age: 370 days)
Extension
JPS Custom Nodes for ComfyUI
Latest Updated
5/22/2024
Github Stars
0.0K

How to Install JPS Custom Nodes for ComfyUI

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

Run ComfyUI Online

Enable Disable Switch (JPS) Description

Toggle between enable and disable states based on conditions, crucial for dynamic workflow control in AI art.

Enable Disable Switch (JPS):

The Enable Disable Switch (JPS) node is designed to provide a simple yet effective mechanism for toggling between "enable" and "disable" states based on specific conditions. This node is particularly useful in scenarios where you need to control the flow of operations or features dynamically. By comparing two integer values and matching a specified condition, the node determines whether to output an "enable" or "disable" state. This functionality can be crucial in various AI art workflows, allowing you to automate decision-making processes and streamline your creative pipeline.

Enable Disable Switch (JPS) Input Parameters:

select

The select parameter is an integer input that allows you to specify a value for comparison. This value is used in conjunction with the compare parameter to determine the output state. The select parameter accepts values ranging from 1 to 9, with a default value of 1. Adjusting this parameter can influence whether the node outputs an "enable" or "disable" state based on the comparison logic.

compare

The compare parameter is another integer input that serves as the reference value for comparison against the select parameter. Similar to the select parameter, it accepts values from 1 to 9 and has a default value of 1. The outcome of the comparison between select and compare determines the final state output by the node.

match

The match parameter is a string input that specifies the condition to be met for the node to output an "enable" or "disable" state. It can take one of two values: "Set to Enable" or "Set to Disable". This parameter directs the node on how to interpret the comparison result between select and compare, thereby controlling the final output state.

Enable Disable Switch (JPS) Output Parameters:

enable_disable

The enable_disable output parameter provides the final state determined by the node based on the input parameters. It outputs either "enable" or "disable", which can then be used to control subsequent operations or features in your workflow. This output is essential for dynamically managing the flow of processes, ensuring that certain actions are only executed under specific conditions.

Enable Disable Switch (JPS) Usage Tips:

  • To ensure the node outputs "enable", set the match parameter to "Set to Enable" and make sure the select and compare values are equal.
  • Conversely, to ensure the node outputs "disable", set the match parameter to "Set to Disable" and make sure the select and compare values are equal.
  • Use this node to create conditional branches in your workflow, enabling or disabling features based on dynamic criteria.

Enable Disable Switch (JPS) Common Errors and Solutions:

"Invalid input value"

  • Explanation: This error occurs when the select or compare parameter is set to a value outside the allowed range (1 to 9).
  • Solution: Ensure that both select and compare parameters are set to values within the range of 1 to 9.

"Match parameter not recognized"

  • Explanation: This error occurs when the match parameter is set to a value other than "Set to Enable" or "Set to Disable".
  • Solution: Verify that the match parameter is correctly set to either "Set to Enable" or "Set to Disable".

"Comparison failed"

  • Explanation: This error occurs when the node fails to compare the select and compare values correctly.
  • Solution: Double-check the values of select and compare to ensure they are integers and within the specified range.

Enable Disable Switch (JPS) Related Nodes

Go back to the extension to check out more related nodes.
JPS Custom Nodes for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.