swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
action  

increment, decrement

 
 

Syntax

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


Purpose

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

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

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

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

       
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:20 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.