Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional logic by dynamically choosing between two outputs based on a boolean condition.
The LazySwitch1way
node is designed to facilitate conditional logic within a node-based workflow, allowing you to dynamically choose between two potential outputs based on a boolean condition. This node is particularly useful in scenarios where you need to toggle between different data paths or configurations without manually adjusting the flow each time. By leveraging the LazySwitch1way
, you can streamline your workflow, making it more efficient and adaptable to varying conditions. The node's primary function is to evaluate a boolean input and return one of two possible outputs, effectively acting as a switch that directs the flow of data based on the specified condition.
The boolean
parameter is a critical input that determines which output path the node will take. It accepts a boolean value, which can be either True
or False
. When set to True
, the node will select the ON_TRUE
output; when set to False
, it will choose the ON_FALSE
output. This parameter allows you to control the flow of data dynamically, making it essential for conditional logic within your workflow. The default value for this parameter is True
.
The ON_TRUE
parameter represents the output that will be selected if the boolean
parameter is set to True
. This input can be of any data type, and it is marked as "lazy," meaning it will only be evaluated if the condition is met. This lazy evaluation can help optimize performance by avoiding unnecessary computations when the condition is not satisfied.
The ON_FALSE
parameter is the counterpart to ON_TRUE
and represents the output that will be selected if the boolean
parameter is set to False
. Like ON_TRUE
, this input can be of any data type and is also evaluated lazily. This ensures that the node only processes the necessary data, improving efficiency and reducing computational overhead.
The OUTPUT
parameter is the result of the node's evaluation based on the boolean
input. It will return the value of either ON_TRUE
or ON_FALSE
, depending on the condition specified by the boolean
parameter. This output is crucial for directing the flow of data in your workflow, allowing you to implement conditional logic seamlessly.
LazySwitch1way
node to manage conditional logic in your workflow, enabling dynamic data routing based on specific conditions.ON_TRUE
or ON_FALSE
parameter is not provided, and the node attempts to evaluate the condition.ON_TRUE
and ON_FALSE
parameters are supplied with valid data inputs to avoid this error.boolean
parameter, and providing a non-boolean value can lead to unexpected behavior.boolean
parameter is set to either True
or False
to ensure proper node functionality.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.