incCounter/decCounter
Increment or decrement a controlled counter
Description
incCounter( counterno, count )
decCounter( counterno, count )
Increments or decrements a controlled counter with the specified count
Parameters
counterno | Counter number, 1-16 |
count | How much to add/subtract from the counter value (this is always a positive value) |
Return value
Returns the low 32 bit of the new counter value
Example usage
new x; x = getCounter(1); // x = 999 (example) x = incCounter( 1, 3 ); // x = 1002 x = decCounter( 1, 102 ); // x = 900
See also getCounter