Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts boolean to float with conditional logic for AI art projects, offering dynamic parameter adjustments.
The Boolean To Float [Dream] node is designed to convert a boolean value into a float, providing a simple yet powerful way to handle conditional logic within your AI art projects. This node allows you to specify two float values: one to be returned when the boolean is true and another when it is false. This functionality is particularly useful for scenarios where you need to dynamically adjust parameters or settings based on binary conditions, enhancing the flexibility and responsiveness of your workflows.
This parameter represents the boolean value that determines which float value will be returned. It accepts a boolean input, which can either be True
or False
. The default value is False
. When set to True
, the node will return the value specified in the on_true
parameter; otherwise, it will return the value specified in the on_false
parameter.
This parameter specifies the float value to be returned when the boolean
parameter is True
. It accepts a float input, with a default value of 1.0
. This allows you to define the output value for the true condition, enabling precise control over the node's behavior in response to boolean inputs.
This parameter specifies the float value to be returned when the boolean
parameter is False
. It accepts a float input, with a default value of 0.0
. This allows you to define the output value for the false condition, ensuring that the node can handle both true and false scenarios effectively.
The result
parameter is the output of the node, which is a float value. This value is determined based on the input boolean: if the boolean is True
, the result
will be the value of the on_true
parameter; if the boolean is False
, the result
will be the value of the on_false
parameter. This output is crucial for driving subsequent nodes or parameters that require float inputs, based on conditional logic.
on_true
and on_false
values are set appropriately to reflect the desired outcomes for your specific use case.True
or False
.on_true
or on_false
are not valid float numbers.on_true
and on_false
parameters are set to valid float numbers, such as 1.0
or 0.0
.© Copyright 2024 RunComfy. All Rights Reserved.