Difference between revisions of "Increment"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Increment memory variable by one | Increment memory variable by one | ||
− | |||
==Syntax== | ==Syntax== | ||
++ <memvar> | ++ <memvar> | ||
− | |||
==See Also== | ==See Also== | ||
[[Decrement|--]], [[AVERAGE]], [[COUNT]], [[FOR]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[STORE]], [[SUM]] | [[Decrement|--]], [[AVERAGE]], [[COUNT]], [[FOR]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[STORE]], [[SUM]] | ||
− | |||
==Description== | ==Description== | ||
The ++ command is used to automatically increment a previously declared numeric memory variable by one. The ++ command must be placed at the beginning of the command line. | The ++ command is used to automatically increment a previously declared numeric memory variable by one. The ++ command must be placed at the beginning of the command line. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands|++]] | [[Category:Commands|++]] | ||
− | [[Category: | + | [[Category:Declaring Variables and Arrays]] |
− | + |
Revision as of 07:01, 7 December 2012
Contents
Purpose
Increment memory variable by one
Syntax
++ <memvar>
See Also
--, AVERAGE, COUNT, FOR, PARAMETERS, PRIVATE, PUBLIC, STORE, SUM
Description
The ++ command is used to automatically increment a previously declared numeric memory variable by one. The ++ command must be placed at the beginning of the command line.
Example
i=0 do while i <100 ++ i enddo