Tag change script newValue

Probably a dumb question, but I could not find it in searches, and the docs didn't really say..

On a tag change script, when using multiple lines of tags or wildcards, what value would be expected from newValue.getValue()? The docs say value of “the tag”. So, if I have 7 tags, any of which would execute the script on change, would newValue represent the last changed value of any of the 7 tags?

I need my script to open a fire alarm popup which maps the location of status of fire system events. This popup should only open once (it's non closeable except by administrative level) when any of the 7 become true the first time. If I script “if newValue.getValue open nav”, would this work?

New value represents the latest value of the tag that fired the event. You'll need to check against the values of the other 6 tags.

2 Likes

If I am understanding correctly, in a tag change script, newvalue.getValue() corresponds to the tag that actually triggered the event.

2 Likes

You don't have to guess. The event object has the tag path on it: Gateway Event Scripts | Ignition User Manual

1 Like