phreddrickk
Active member
Recently I encountered an issue with getCounter in a script, and when investigating it, I dug up this:
No doubt you have noticed that 2+9=11. The fact that getCounters() has a value of both -2 and +9 for
the "Vote Monster" counter seems reasonable, but I feel like getCounter() should be returning 9, not -2.
> js getCounter("Vote Monster")
Returned: -2
> counters
Unexpired counters:
Vote Monster (9)
> js getCounters("Vote Monster", -2, -2)
Returned: Vote Monster
>js getCounters("Vote Monster", 0, 11)
returned: Vote Monster
No doubt you have noticed that 2+9=11. The fact that getCounters() has a value of both -2 and +9 for
the "Vote Monster" counter seems reasonable, but I feel like getCounter() should be returning 9, not -2.