set counter value

  1. 6 weeks ago

    how do you set counter value using code ?

  2. Hello Meron,

    "The counter object" is an object that holds a numeric value that can be increased and decreased using actions, running lists of actions contextually and when reaching a specific target value.

    You can find all the documentation about it here
    Docs - Counter Object

    If you cannot solve your problem , try to explain what you want to achieve and we will try to give you additional support :)

    Thanks,
    Riccardo

  3. 5 weeks ago

    Thanks for the reply.
    I know what it does. I just want to reset its value using a code.
    Like to get its value you use PubCoder.getCounterValue(), what is the code to set its value? I can't seem to find the counter property in the PubCoder object. Or is it abstracted from the user?

  4. Hi Meron,

    There isn't code to set the value of the counter.
    The properties of the object are those you can find in the documentation.

    Thanks,
    Riccardo

 

or Sign Up to reply!