sum

Basic data handling: SetSum

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
setSETrequired
startINToptional

Outputs (2)

NameType
sum_intINT
sum_floatFLOAT