Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamic data flow control node for AI art projects, switches inputs based on boolean condition for enhanced workflow efficiency.
The Switch any [Crystools] node is designed to provide a flexible and dynamic way to control the flow of data based on a boolean condition. This node allows you to switch between two different inputs, returning one of them based on the evaluation of a boolean value. It is particularly useful in scenarios where you need to make decisions or alter the data pipeline dynamically, enhancing the versatility and control within your AI art projects. By leveraging this node, you can streamline complex workflows and ensure that the appropriate data is processed under specific conditions, making your creative process more efficient and adaptable.
This parameter represents the data that will be returned if the boolean condition evaluates to true. It can accept any type of input, making it highly versatile for various use cases. The value of this parameter is crucial as it determines the output when the condition is met.
This parameter represents the data that will be returned if the boolean condition evaluates to false. Similar to the on_true
parameter, it can accept any type of input. The value of this parameter is essential as it dictates the output when the condition is not met.
This parameter is a boolean value that determines which of the two inputs (on_true
or on_false
) will be returned. If the boolean value is true, the on_true
input is returned; otherwise, the on_false
input is returned. The default value is true, but it can be set to false to switch the output accordingly.
The output parameter returns the value of either on_true
or on_false
based on the evaluation of the boolean condition. This output is highly flexible as it can be of any type, depending on the inputs provided. The returned value is crucial for the subsequent nodes in your workflow, as it determines the data that will be processed next.
on_true
and on_false
parameters are set with appropriate values that you want to switch between, depending on the boolean condition.on_true
and on_false
are incompatible or not supported by the node.on_true
and on_false
are of compatible types and supported by the node. Verify that the data being passed is correctly formatted and appropriate for the intended use.on_true
or on_false
is invalid or corrupted.on_true
and on_false
to ensure it is valid and correctly formatted. Validate the data before passing it to the node to prevent this error.© Copyright 2024 RunComfy. All Rights Reserved.