Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamic float value switch based on boolean input for adaptive workflows, streamlining conditional logic in AI art generation.
The CR Float Input Switch JK node is designed to dynamically select between two float values based on a boolean input. This node is particularly useful in scenarios where you need to switch between different numerical values depending on a condition, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline processes that require conditional logic, ensuring that the appropriate float value is used in subsequent operations. This can be especially beneficial in AI art generation, where different parameters might need to be adjusted based on specific conditions or states.
The boolean_value
parameter determines which float value will be selected. It accepts a boolean input (True
or False
). When set to True
, the node will output the value specified in float_true
. Conversely, when set to False
, the node will output the value specified in float_false
. The default value is False
.
The float_false
parameter specifies the float value to be used when boolean_value
is False
. This parameter accepts a float input and has a default value of 0
. The minimum value is -18446744073709551615
and the maximum value is 18446744073709551615
.
The float_true
parameter specifies the float value to be used when boolean_value
is True
. This parameter accepts a float input and has a default value of 0
. The minimum value is -18446744073709551615
and the maximum value is 18446744073709551615
.
The FLOAT
output parameter provides the selected float value based on the boolean_value
input. If boolean_value
is True
, it outputs the value from float_true
; otherwise, it outputs the value from float_false
. This output is crucial for subsequent nodes that require a float input.
The BOOLEAN
output parameter simply returns the value of the boolean_value
input. This can be useful for debugging or for further conditional logic in your workflow.
boolean_value
parameter to control which float value is passed to subsequent nodes, allowing for dynamic adjustments based on conditions.float_false
and float_true
values are set appropriately to cover the range of scenarios you anticipate in your workflow.float_false
and float_true
are within the range of -18446744073709551615
to 18446744073709551615
.boolean_value
parameter is not provided.True
or False
) to the boolean_value
parameter to determine which float value to use.float_false
or float_true
is not a float.float_false
and float_true
are valid float numbers.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.