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