true
or false
) into its corresponding floating-point representation. This node is useful when you need to use boolean values in mathematical operations or functions that expect floating-point inputs.
a
(boolean, default: false
): The boolean value to be converted to a floating-point number.result
(float): The floating-point representation of the input boolean value. true
is converted to 1.0
, and false
is converted to 0.0
.a
input of the To Float (Boolean) node.1.0
for true
, 0.0
for false
) from the result
output.result
output to the input of another node that expects a floating-point value, such as a mathematical operation or function node.true
for logged in, false
for not logged in).a
input of a To Float (Boolean) node.1.5
).result
output of the To Float (Boolean) node and the float constant node to the inputs of a Multiply node.1.5
if the user is logged in or 0.0
if the user is not logged in.true
to 1.0
and false
to 0.0
. If you need different floating-point values for true
and false
, you can use a Select node or an If node to assign custom values based on the boolean input.a
input of the To Float (Boolean) node. Connecting other data types may lead to unexpected behavior or errors.1.0
for true
and 0.0
for false
. If you require different output values, you’ll need to use additional nodes to modify the output accordingly.