ComfyUI Node

sum

Calculates the sum of all elements in a SET. This node takes a SET as input and returns the sum of all its elements. The optional start parameter specifies the initial value (default is 0). Note: This operation requires all elements to be numeric or otherwise compatible with addition. If the SET contains mixed or incompatible types, it may raise an error.

By StableLlama·Created about a year ago·Updated 26 days ago· 45
sum
  • set
  • sum_int
  • sum_float
start0
CategoryBasic/SET

Inputs (2)

NameTypeDefaultDescription
setSET
startoptINT0

Outputs (2)

NameTypeDescription
sum_intINT
sum_floatFLOAT