Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional branching in AI art workflows based on boolean conditions, enabling dynamic value selection.
The ImpactConditionalBranchSelMode
node is designed to facilitate conditional branching in your AI art workflows based on boolean conditions. This node allows you to dynamically select between two values depending on a condition, with an additional mode selection that determines when the condition is evaluated. This flexibility can be particularly useful in scenarios where you need to make decisions based on user input or other runtime conditions, enhancing the interactivity and adaptability of your AI art projects.
The cond
parameter is a boolean input that determines which value will be selected. If cond
is True
, the node will return the tt_value
; otherwise, it will return the ff_value
. This parameter is crucial as it directly influences the branching logic of the node.
The sel_mode
parameter is a boolean input that specifies when the condition should be evaluated. It has two options: select_on_prompt
(True) and select_on_execution
(False). The default value is True
. When set to select_on_prompt
, the condition is evaluated based on the prompt input; when set to select_on_execution
, the condition is evaluated during the execution phase. This parameter adds an extra layer of control over the timing of the condition evaluation.
The tt_value
parameter is an optional input that represents the value to be returned if the cond
parameter is True
. This can be of any type, allowing for flexible and dynamic value selection based on the condition.
The ff_value
parameter is an optional input that represents the value to be returned if the cond
parameter is False
. Similar to tt_value
, this can be of any type, providing versatility in the node's output based on the condition.
The output of the ImpactConditionalBranchSelMode
node is a single value of any type, determined by the cond
parameter. If cond
is True
, the output will be the tt_value
; if cond
is False
, the output will be the ff_value
. This output is essential for directing the flow of your AI art workflow based on dynamic conditions.
sel_mode
parameter to control when the condition is evaluated, which can be particularly useful for interactive applications where user input may change the condition.tt_value
and ff_value
are properly set to avoid unexpected results, especially when the condition can vary frequently.tt_value
or ff_value
tt_value
or ff_value
is not provided, the node may not function as expected.tt_value
and ff_value
are set, even if they are optional, to guarantee the node operates correctly.cond
Inputcond
parameter must be a boolean value. If an invalid type is provided, the node will not execute properly.cond
input is a boolean value to ensure correct branching logic.sel_mode
Configurationsel_mode
is not set correctly, the condition may be evaluated at the wrong time, leading to unexpected results.sel_mode
setting to ensure it matches the desired timing for condition evaluation.© Copyright 2024 RunComfy. All Rights Reserved.