Counter

Counter is a special Object type that has access to Counter related functionality like increment, decrement, and clear. Once you have a reference to an Object you can call these functions like this: obj.Counter.increment().

Functions

Return ValueFunction NameDescription
boolclear()Resets the Counter value back to 0.
booldecrement()Decrements the Counter’s value by 1.
intgetValue()Returns the current value of the Counter. This is the same as calling getValue() on the Object reference.
boolincrement()Increments the Counter’s value by 1.
boolsetValue( int count )Sets the current value of the Counter. This is the same as calling setValue() on the Object reference.