Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Operators

Subtraction or Minus Operator (-)

Scroll Prev Up Next More

The subtraction/minus operator (-) works the expected way for integers/dates.

nTen = 16 - 6
nYesterday = Today() - 1

The - operator is not defined for the boolean and string data types.

 

Additionally, the - operator can be used as a unary operator, where it simply returns the negative of the value of the variable it operates on.

nProfit = -nDeficit
nDiscount = -35

 


Topic 121800, last updated on 18-Apr-2020