Compute Merge Method
Usage | Parameters | Examples | Remarks
The Compute merge method performs mathematical computational calculations.
Usage
Compute(Expression) |
Performs a computation based on the expression that is parsed |
Parameters
Expression Text
The expression to compute. Although parsed as text, the expression must be a mathematical formula based on numerics. For further information on expression usage and syntax, read the logical expression section.
Examples
Example 1
Name a document and include the total value of an invoice based on the sum of its Subtotal and Tax components that have been captured by 2 separate zones.
In this example, the result could be "Invoice total 126.5"
Example 2
Name a document and include the total value of an invoice based on the sum of its Subtotal and Tax components that have been captured by 2 separate zones. In this example we include the FormatNumber merge method to convert the total to a currency value with 2 decimal places.
In this example, the result could be "$126.50"
Example 3
Calculate a line total for a total line price within a document. Populate the default value of another zone with the calculated total. The entire method is included below (as it cannot all be seen in the related image).
<<Compute(<<Qty>>*<<EachPrice>>)>>
Calculating a default value from the values of other zones
Remarks
None