swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
action  

increment, decrement

 
 

Syntax

decrement name indexer? (by numeric-expression)?
increment 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:

  process
     local integer i initial { 10 }
  
     increment i      ; i = 11
     increment i by 3 ; i = 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.

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

      Related Concepts
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.