contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
action   increment, decrement    
     

Syntax

  increment counter-name indexer? (by numeric-expression)?


Purpose

increment increases the value of a counter by a specified amount. If no amount is specified, increment increases the value of the counter by 1:

  local counter fred initial {10}
  ;fred = 10
  increment fred
  ;fred = 11
  increment fred by 3
  ;fred = 14

decrement decreases the value of a counter by a specified amount. If no amount is specified, decrement decreases the value of the counter by 1.

  local counter fred initial {10}
  ;fred = 10
  decrement fred
  ;fred = 9
  decrement fred by 3
  ;fred = 6

       
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:08 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.