AddVar
All validation programs
Adds a value to the current value of a variable. This can keep a running total for use in other rules. Maximum precision is 8 decimal places.
Format of Parameters
VarName VarValue
Where:
VarName
|
The variable to hold the accumulated values. If VarName has not yet been defined, it is created. |
VarValue
|
Optional. The amount being added to the variable. This can be a variable, , or a literal in double quotes. If omitted, the value of is assumed. |
Example. This rule keeps a running total of the service line amounts in each repetition of the SV2 and enclosing CLM loops. It is applied to each service line amount element.
For examples of how to use the results of an AddVar, see these examples: