Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -- decrement operator (postfix) (unary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 --                  Decrement operator (postfix) (unary)
------------------------------------------------------------------------------
 Syntax
   nVar--

 Arguments
   nVar is a numeric variable.

 Description
   The -- operator decrements the value of nVar by one. The operation
   is postfix, that is the decrementation precedes the assignment. The
   decrement operator may not be used within expressions.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_936
   vardef
      uint nCounter
   enddef
   nCounter := 25
   do while nCounter > 20
      ? nCounter
      nCounter--
   enddo
   endproc

   proc main
   Test_936()
   endproc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson