Math

Takes a variable number of parameters

Description:

Note: Unlike most other statements in MOX, because of the dynamic number of other items you must specify a blank FieldBase and a blank IfLenFld when they are not needed and they are not otherwise set by the commands WorkWith and WorkIf.

The contents of Item1 and Item2 are solved using the Operator, each additional operator is then used to apply the next item. The items are thus solved in the order stated, and there is not operator precedence.

Usage:

FieldBase, Destination, Item1, Operator, Item2, [...other operators and items...], IfLenFld
[WorkWith], Destination, Item1, Operator, Item2, [...other operators and items...],  IfLenFld
FieldBase, Destination, Item1, Operator, Item2, [...other operators and items...], [WorkIf]
[WorkWith], Destination, Item1, Operator, Item2, [...other operators and items...], [WorkIf]

List of Operators:

Examples:

Math "Finance.Transaction.", "Total", "LineItems", "+", "Tax1", "+", "Tax2", ""

Math "", "SumOf1To5", "1", "+", "2", "+", "3", ""