Minus (-)

Navigation:  Appendices > Macro Language > Operators >

Minus (-)

Previous pageReturn to chapter overviewNext page

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

 

nTen = 16 - 6

nYesterday = Today() - 1

 

Note that the - operator is not defined for the boolean and string data type.

 

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 updated on 31-Jul-2001.
Topic URL: http://www.qppstudio.net/webhelp/index.html?-.htm