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

Download

After you download the example template, you can import the template to any workspace to see this example code in action.