Nodes/ComfyUI-Przewodo-Utils/Swap any Two values in a comparison
ComfyUI Node

Swap any Two values in a comparison

A ComfyUI node in PrzewodoUtils with 5 inputs and 2 outputs.

By przewodo·Created about a year ago·Updated 4 months ago· 4
Swap any Two values in a comparison
  • value_a
  • value_b
  • input_a
  • input_b
  • input_a
  • input_b
comparisona == b
CategoryPrzewodoUtils

Inputs (5)

NameTypeDefaultDescription
value_a*First value for comparison operation. Used as left operand in the comparison
value_b*Second value for comparison operation. Used as right operand in the comparison
comparisonCOMBOa == bComparison operation to evaluate between value_a and value_b. If true, inputs are swapped
input_aopt*First input value to swap. Will be returned as 'input_b' if comparison is true, otherwise as 'input_a'
input_bopt*Second input value to swap. Will be returned as 'input_a' if comparison is true, otherwise as 'input_b'

Outputs (2)

NameTypeDescription
input_a*
input_b*