runScript() in Transaction Expression

Okay,

I have been trying to figure out this function for a while now !

https://docs.inductiveautomation.com/display/DOC80/runScript

As per this, I should pass each argument in a separate list but that is not the case in the example shown !

Anyways, I have a following function which basically should write 1 to the tag every time transaction expression is true !

with the help of this,

anything wrong am I doing here ? cause it doesn’t write to that tag.

Thanks

Is your expression tag assigned to a tag group? As is, since the runScript expression doesn’t have a poll rate, it’s going to run at most one time, when the expression tag is first created.

It's not an tag. It's triggered expression item of that transaction group which looks something like this.