Nodes/Basic data handling/compare length
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.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
compare length
  • container
  • result
  • actual_length
operator==
length0
CategoryBasic/comparison

Inputs (3)

NameTypeDefaultDescription
container*
operatorCOMBO==6 options: ==, !=, >, <, >=, <=
lengthINT0

Outputs (2)

NameTypeDescription
resultBOOLEAN
actual_lengthINT