counters.set(name, value) Last updated: 07. Oct 2024

API only function

Sets the value of a named counter.

Parameters

Name Type Description
name string The name of the counter to set.
value integer The integer value to set the counter to.

Returns

true or false

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// Sets the counter "Ticektno" to 10
counters.set("Ticketno", 10);