Basic calculations

To perform basic numeric calculations in a script, simply use a numeric expression. For example, the following script computes the average utility bill for a three-month period.

local currency average_cost;

average_cost = ('January Cost' + 'February Cost' + 'March Cost') / 3;

For more information about the types of expressions available in sanScript, refer to Expressions.


Documentation Feedback