HotDocs Author WorkflowCreate a template Add placeholders Group variables in dialogs Upload a template Create a script

NUM - NUM Operator

The NUM - NUM operator subtracts the second number value from the first and returns the result.

The - operator is one of Author's arithmetic operators that you can use in calculations.

Operator Model After you drag and drop the model into the script tab: Expression returns:
- ⟦NUM⟧ - ⟦NUM⟧  Replace the ⟦NUM⟧ placeholders with the numeric values you want to subtract. A number value.

Example

The following script calculates a total price by subtracting the Number variable DiscountNU from SalePriceNU.

SET TotalPriceNU TO SalePriceNU - DiscountNU