Avatar

Employee Advisor

I scripted the following which loads the current value and also sets it.

 

var data = NLWS.xtkCounter.load(2521030); //id of counter
var c = data.value;
//logInfo(c+ " " +typeof c);
data.value = ++c;
data.save()

 

Now I guess I need to integrate it into the expression or some kind of loop, any ideas?