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.
sum
- set
- sum_int
- sum_float
◄start0►
CategoryBasic/SET
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| set | SET | — | |
| startopt | INT | 0 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| sum_int | INT | — |
| sum_float | FLOAT | — |