Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional selection between two numerical inputs based on a boolean condition for AI art generation.
The Number Input Switch node is designed to facilitate conditional selection between two numerical inputs based on a boolean condition. This node is particularly useful when you need to dynamically choose between two numbers during the execution of your AI art generation process. By leveraging this node, you can streamline your workflow and ensure that the appropriate numerical value is used based on specific conditions, enhancing the flexibility and efficiency of your projects.
This parameter represents the first numerical input that the node can select. It can be any number and serves as one of the two potential outputs based on the boolean condition. The value of number_a
will be chosen if the boolean condition is true.
This parameter represents the second numerical input that the node can select. Similar to number_a
, it can be any number and serves as the alternative output based on the boolean condition. The value of number_b
will be chosen if the boolean condition is false.
This boolean parameter determines which of the two numerical inputs will be selected. If set to true, the node will output number_a
; if set to false, it will output number_b
. This parameter is crucial for controlling the conditional logic of the node.
This output represents the selected numerical value based on the boolean condition. It will be either number_a
or number_b
, depending on the value of the boolean parameter.
This output provides the selected numerical value in floating-point format. It ensures that the output is compatible with operations or nodes that require a float input.
This output provides the selected numerical value in integer format. It ensures that the output is compatible with operations or nodes that require an integer input.
number_a
and number_b
) are set appropriately to avoid unexpected results.number_a
and number_b
are valid numerical values.© Copyright 2024 RunComfy. All Rights Reserved.