ComfyUI Node
compare length
Compares the length of a container (string, list, etc) with a value. This node takes a container and a comparison value, and returns a boolean result based on the comparison of the container's length with the value.
compare length
- container
- result
- actual_length
◄operator==►
◄length0►
CategoryBasic/comparison
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| container | * | — | |
| operator | COMBO | == | 6 options: ==, !=, >, <, >=, <= |
| length | INT | 0 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| result | BOOLEAN | — |
| actual_length | INT | — |