Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic input swapping based on boolean condition for workflow efficiency in AI art generation tasks.
The JDCN_SwapInputs
node is designed to facilitate the swapping of two input values based on a boolean condition. This node is particularly useful in scenarios where you need to dynamically interchange the positions of two inputs during the execution of a workflow. By leveraging this node, you can streamline processes that require conditional swapping, thereby enhancing the flexibility and efficiency of your AI art generation tasks. The primary function of this node is to check the boolean parameter and swap the inputs if the condition is met, otherwise, it retains the original order of the inputs.
inputA
is the first input value that you want to potentially swap with inputB
. This parameter can accept any type of data, making it versatile for various use cases. The value of inputA
will be swapped with inputB
if the SwapIT
condition is true.
inputB
is the second input value that you want to potentially swap with inputA
. Similar to inputA
, this parameter can accept any type of data. The value of inputB
will be swapped with inputA
if the SwapIT
condition is true.
SwapIT
is a boolean parameter that determines whether the inputs should be swapped. If SwapIT
is set to true, inputA
and inputB
will be swapped. If it is set to false, the inputs will remain in their original order. The default value for SwapIT
is false.
outputA
is the first output value after the potential swap. If SwapIT
is true, outputA
will contain the value of inputB
. If SwapIT
is false, outputA
will retain the value of inputA
.
outputB
is the second output value after the potential swap. If SwapIT
is true, outputB
will contain the value of inputA
. If SwapIT
is false, outputB
will retain the value of inputB
.
SwapIT
parameter to control the swapping dynamically based on conditions in your workflow.inputA
and inputB
are of compatible types to avoid unexpected behavior during the swap.inputA
and inputB
are of incompatible types, the node may not function as expected.inputA
or inputB
is not provided, the node will not be able to perform the swap.inputA
and inputB
before executing the node.SwapIT
is not a boolean value, the node will not be able to determine whether to swap the inputs.SwapIT
is set to either true or false.© Copyright 2024 RunComfy. All Rights Reserved.