Reply To: SetCounter("label", *number*) doesn't seem to work

PennController for IBEX Forums Support SetCounter("label", *number*) doesn't seem to work Reply To: SetCounter("label", *number*) doesn't seem to work

#4665
Jeremy
Keymaster

Hi Umesh,

Thank you for reporting this, and sorry for the late reply. There is a bug in how I coded the parser for the parameters of SetCounter—I just fixed it for the next release. In the meantime, you can do this instead:

PennController.SetCounter("Setcounter", "inc", 4);

and of course you can always use the native Ibex syntax, though it’s deprecated:

var items = [
  ["Setcounter", "__SetCounter__", {inc: 4}]
];

Note though that the intended meaning of SetCounter("label", 4) (and the way it will work in the next release) is to set the counter to 4, not increment it by 4.

Best,
Jeremy