sum
This block is part of the array group and was last modified in core v10.4.28.
sum v10.4.28 Returns the total sum of the given array of numbers.
In pins 1
- Array required
arrayThe array of numbers for which to calculate the sum.
Out pins 1
- Number
numberSum of the array of numbers.
Returns the sum of the items coerced to numbers; numeric strings and booleans coerce, and non-coercible items after the first add 0. Outputs 0 when the array is empty, not an array, or its FIRST item is not numeric-coercible - indistinguishable from a real sum of 0.
total |
A typical wiring for sum: the number out pin feeds cast to value.

Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group
