sum

Takes the sum of two integer values.

Syntax

sum(arg1, arg2)

Inputs

arg1
An integer variable or constant
arg2
An integer variable or constant

Comments

The sum function can only be used as the right-hand argument of a set statement.

Example

set numrequests = sum(mains, secondaries)  // total main and secondary elements