Setting Up Mathematical Operations

Perhaps the simplest use of the custom statement is for mathematical operations. This section looks at some sample clauses.

Simple Mathematical Operation

Here is the Custom Statement page showing a simple mathematical operation:

This example illustrates the Custom Statement page with a simple mathematical operation.

Custom Statement page showing a simple mathematical operation

This very simple example shows a mathematical operation (addition) using two operands. Notice that the clause type is Operation, which indicates that this is a mathematical operation. Also notice that the result of the operation is assigned to the variable SAMPLE, which is the name of the custom statement. This is required of all mathematical equation types in order to associate the name of the custom statement with the final value.

Extended Mathematical Operation

Here is the Custom Statement page showing an extended mathematical operation:

This example illustrates the Custom Statement page with an extended mathematical operation.

Custom Statement page showing an extended mathematical operation

The operation skips the Operand3 field and continues. You can continue as long as you like, using just the first two operand fields and the first two operator fields. The third operand field is reserved for assigning intermediate (temporary) or final results to variable names.