Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically set values based on boolean condition for simplified conditional logic and task automation.
The CR Set Value On Boolean
node is designed to help you dynamically set values based on a boolean condition. This node is particularly useful when you need to make decisions in your workflow based on a true or false condition. By providing two different values for the true and false states, you can control the flow of your operations more effectively. This node simplifies conditional logic, making it easier to manage and automate tasks that depend on binary conditions.
This parameter represents the boolean condition that determines which value will be selected. It accepts a boolean input (True
or False
). The default value is True
, and it is a required input.
This parameter specifies the value to be returned if the boolean condition is True
. It accepts a floating-point number with a default value of 1
. The range for this parameter is from -18446744073709551615
to 18446744073709551615
.
This parameter specifies the value to be returned if the boolean condition is False
. It accepts a floating-point number with a default value of 0
. The range for this parameter is from -18446744073709551615
to 18446744073709551615
.
This output returns the integer representation of the selected value based on the boolean condition. If the condition is True
, it returns the integer part of value_if_true
; otherwise, it returns the integer part of value_if_false
.
This output returns the floating-point representation of the selected value based on the boolean condition. If the condition is True
, it returns value_if_true
; otherwise, it returns value_if_false
.
This output provides a URL link to the help documentation for this node. It is a string that directs you to additional resources and examples on how to use the node effectively.
value_if_true
and value_if_false
to ensure they meet your requirements.True
or False
.True
or False
.value_if_true
or value_if_false
are outside the acceptable range.value_if_true
and value_if_false
are within the range of -18446744073709551615
to 18446744073709551615
.© Copyright 2024 RunComfy. All Rights Reserved.