Skip to main content

setCounterValues v5.2

Set the current value of one or more existing counters, without changing their configuration. Setting a value also resets the counter's repeat state.

Parameter​

An object where the keys are counter names, and the values are the new integer values. Each value must be within the counter's minValue and maxValue.

Return value​

null

The request fails if a counter does not exist or a value is out of range. Counters are updated in order, so counters listed before the failing one have already been updated.

Example​

setCounterValues {"CNT1": 100, "CNT2": 0}