Workshop.codes
Create

Array Sum Last updated March 18, 2024

Description

Returns the sum of all numeric values in a specified array. Non-numeric elements are ignored. Returns 0 for an empty array. Useful for totaling scores, accumulated stats, or any array of numeric Workshop values without requiring a manual loop.

Snippet

Array Sum(Global.ScoreArray);

Properties

Returns: Number
Parameters: Array

Array
Type: Array, Default: Empty Array
The array of numeric values to sum.

Workshop.codes