$add

Calculates the sum of all given numbers.
Syntax
    $add{numerical_value_1}{numerical_value_2}...{numerical_value_n}
DocumentationCalculates the sum of all given parameters:

    Parameters:
numerical_value_n, any numerical value. Returns: the sum of all parameters (numerical_value_1 + numerical_value_2 + ... + numerical_value_n). Throws:
    java.lang.NumberFormatException if any parameter is non numerical.
Examples
Calculate the sum of all numbers in the range of 1 through 10:

    $set{sum}{0}

    $for {$set{counter}{0}} {$lessOrEqual{$get{counter}}{10}} {$incLocal{counter}}
      {
      $set{sum}{$add{$get{sum}}{$get{counter}}
      }
GroupMath
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters <unlimited>