Grid.getSum() - Mtax-Development/GML-OOP GitHub Wiki

Argument

Name
Type
Optional
location?
Yes

Returns

{real|undefined}

Description

Return the sum of numerical values found in cells within the specified region of this Grid. Strings containing only numbers will also be included. Other values will be ignored. If this Grid does not exist or the region contains no values that can be summed, {undefined} will be returned.

⚠️ **GitHub.com Fallback** ⚠️