ComfyUI Node
COMPARISON (JOV) π΅π½
Evaluates two inputs (A and B) with a specified comparison operators and optional values for successful and failed comparisons. The node performs the specified operation element-wise between corresponding elements of A and B. If the comparison is successful for all elements, it returns the success value; otherwise, it returns the failure value. The node supports various comparison operators such as EQUAL, GREATER_THAN, LESS_THAN, AND, OR, IS, IN, etc.
COMPARISON (JOV) π΅π½
- π °οΈ
- π ±οΈ
- π
- π₯΅
- β‘
- VAL
βπ΅π½ββοΈEQUALβΊ
βπfalseβΊ
βπ³falseβΊ
CategoryJOVIMETRIX πΊπ©π΅/CALC
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| π °οΈopt | * | 0 | Master Comparator |
| π ±οΈopt | * | 0 | Secondary Comparator |
| πopt | * | 0 | pass this data on a successful condition |
| π₯΅opt | * | 0 | pass this data on a failure condition |
| π΅π½ββοΈopt | COMBO | EQUAL | Comparison function. Will pass the data in π on successful comparison |
| πopt | BOOLEAN | false | Flip Input A and Input B with each other |
| π³opt | BOOLEAN | false | reverse the successful and failure inputs |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| β‘ | * | Outputs the input at π °οΈ or π ±οΈ depending on which evaluated TRUE |
| VAL | * | The comparison result value |