msys.counter.reset

March 26, 2020 Contributors

Name

msys.counter.reset — Reset a counter

Synopsis

msys.counter.reset(object_or_path);

object_or_path: mixed

Description

Resets the given counter object or counter associated with the given path to 0. If the supplied counter path does not have a counter associated with it, then it is created with strict semantics.

Enable this function with the statement require('msys.counter');.

You can also use the counter console command to display and manipulate counters.

See Also

msys.counter.inc, msys.counter.add, msys.counter.open, msys.counter.unlink