Visit ComfyUI Online for ready-to-use ComfyUI environment
Emit boolean values for workflow control, toggle between True and False for conditional paths in AI processes.
The SimpleToggle node is designed to provide a straightforward way to emit boolean values (True or False) as inputs for other nodes within your workflow. This node is particularly useful when you need to control the flow of your operations based on simple on/off conditions. By toggling between True and False, you can easily manage conditional paths, enabling or disabling certain parts of your workflow without complex logic. This node is essential for scenarios where you need a quick and efficient way to switch states, making it a valuable tool for AI artists who want to streamline their processes.
The toggle
parameter is a boolean input that determines the state of the node. When set to True, the node emits a True value; when set to False, it emits a False value. This parameter is crucial for controlling the flow of your operations based on simple conditions. The default value is True, and it can be toggled between True and False as needed. This parameter also features labels for better clarity: "Enabled" when True and "Disabled" when False.
The run_after
parameter is an optional input that allows you to specify a dependency on another node. By connecting another node to this slot, you ensure that the SimpleToggle node runs only after the specified node has completed its execution. This is useful for creating dependencies and ensuring the correct sequence of operations in your workflow. The parameter accepts any type of input, and its primary function is to manage execution order rather than influence the boolean output.
The out
parameter is the boolean output of the SimpleToggle node. It reflects the state of the toggle
input, emitting either True or False based on the value of the toggle
parameter. This output can be used as an input for other nodes, allowing you to control their behavior based on the boolean state. The out
parameter is essential for creating conditional paths and managing the flow of your operations efficiently.
toggle
parameter to quickly switch between enabling and disabling parts of your workflow without needing complex logic.run_after
parameter to another node if you need to ensure that the SimpleToggle node runs only after a specific node has completed its execution.out
parameter to control other nodes based on the boolean state, making it easier to manage conditional operations.toggle
parameter expects a boolean value, but an invalid type was provided.toggle
parameter is set to either True or False.run_after
parameter expects a connection to another node, but none was provided.run_after
parameter to establish the correct execution order.out
parameter is expected to be a boolean, but an unexpected type was encountered.toggle
parameter is correctly set to True or False to ensure the out
parameter emits the correct boolean value.© Copyright 2024 RunComfy. All Rights Reserved.