Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI_SamplingUtils > Soft Switch (Inverse)

ComfyUI Node: Soft Switch (Inverse)

Class Name

ComfySoftSwitchInverseNode

Category
logic
Author
silveroxides (Account age: 2211days)
Extension
ComfyUI_SamplingUtils
Latest Updated
2026-06-03
Github Stars
0.02K

How to Install ComfyUI_SamplingUtils

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

Soft Switch (Inverse) Description

Versatile logic node for dynamic input selection based on inverse boolean condition evaluation.

Soft Switch (Inverse):

The ComfySoftSwitchInverseNode is a versatile logic node designed to facilitate decision-making processes within a node-based workflow. Its primary function is to evaluate a boolean condition and dynamically select between two potential inputs based on the inverse of the given condition. This node is particularly beneficial in scenarios where you need to execute different operations or paths depending on the negation of a specific condition. By providing an inverse logic switch, it allows for more flexible and creative control over the flow of operations, enabling you to craft more complex and responsive workflows without needing to manually invert conditions elsewhere in your setup.

Soft Switch (Inverse) Input Parameters:

switch

The switch parameter is a boolean input that determines the logic path the node will take. When this parameter is set to true, the node will output the value connected to the on_false input, and when set to false, it will output the value connected to the on_true input. This inversion of logic allows for creative control over the workflow, enabling you to easily toggle between two different paths based on the negation of the condition. There are no specific minimum or maximum values as it is a boolean, but it defaults to either true or false based on your setup.

on_true

The on_true parameter is an optional input that accepts a value or operation to be executed when the switch parameter is false. This input is evaluated lazily, meaning it is only processed if the condition requires it, optimizing performance by avoiding unnecessary computations. The flexibility of this parameter allows you to define a specific path or operation that should be taken when the inverse condition is met.

on_false

The on_false parameter is an optional input that accepts a value or operation to be executed when the switch parameter is true. Similar to on_true, this input is also evaluated lazily, ensuring that it is only processed when needed. This parameter provides the ability to define an alternative path or operation, enhancing the node's capability to handle complex logic scenarios by switching paths based on the inverse condition.

Soft Switch (Inverse) Output Parameters:

output

The output parameter is the result of the node's logic operation, providing the value from either the on_true or on_false input based on the inverse of the switch condition. This output is crucial as it determines the subsequent path or operation in your workflow, allowing for dynamic and responsive changes based on the evaluated condition. The output's flexibility and adaptability make it an essential component for creating intricate and conditional workflows.

Soft Switch (Inverse) Usage Tips:

  • Utilize the switch parameter to easily toggle between two different workflow paths without manually inverting conditions elsewhere in your setup.
  • Leverage the lazy evaluation of on_true and on_false inputs to optimize performance by ensuring only necessary computations are executed.

Soft Switch (Inverse) Common Errors and Solutions:

"At least one of on_false or on_true must be connected to Switch node"

  • Explanation: This error occurs when neither the on_true nor the on_false inputs are connected, leaving the node without a valid path to execute.
  • Solution: Ensure that at least one of the on_true or on_false inputs is connected to a valid operation or value to provide a complete logic path for the node to execute.

Soft Switch (Inverse) Related Nodes

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