The Arithmetic command allows you to perform four basic arithmetic operations: addition (+), subtraction (-), division (/), and multiplication (*). The general form of the arithmetic command is:
<Left variable> <arithmetic Operator> <Right variable> = <Destination variable>
This command can also be used for date arithmetic, such as:
Date1 - Date2 = Number Date1 +/- Number = Date2
Or incremental counters, such as
MemVar + 1 = MemVar
Left – choices are:
Memory Variable – displays next to the Rule Command window. Double-click a memory variable and the program automatically enters it in the Left text box.
Record/Field – displays next to the Rule Command window. Double-click a field and the program automatically enters it in the Left text box.
System Variable – displays next to the Rule Command window. Double-click a system variable and the program automatically enters it in the Left text box.
Operator – choices are:
+ |
Addition |
– |
Subtraction |
/ |
Division |
* |
Multiplication |
Right – choices are:
Memory Variable – displays next to the Rule Command window. Double-click a memory variable and the program automatically enters it in the Right text box.
Record/Field – displays next to the Rule Command window. Double-click a field and the program automatically enters it in the Right text box.
System Variable – displays next to the Rule Command window. Double-click a system variable and the program automatically enters it in the Right text box.
Constant – Enter a value in the text box on the ECMap window that displays and select OK. The value is automatically entered in the Right text box.
Destination – holds the result of the arithmetic operation. Choose from:
Memory Variable – displays next to the Rule Command window. Double-click a memory variable and the program automatically enters it in the Destination text box.
Record/Field – displays next to the Rule Command window. Double-click a field and the program automatically enters it in the Destination text box.
System Variable – displays next to the Rule Command window. Double-click a system variable and the program automatically enters it in the Destination text box.