Skip to content

Counter

The Counter behavior is present on the Counter object.

Functions

Function Name Return Description
clear()
clear()
Resets Counter to 0.
decrement()
decrement()
Reduces Counter's value by 1.
getValue()
getValue()
Returns Counter's current value. This function behaves the same as Object's getValue().
increment()
increment()
Increases Counter's value by 1.
setValue()
setValue()
Sets the current value of the Counter. This function behaves the same as Object's setValue().

Example

Increment a counter's value.

object.Counter.increment()