# Tag change script newValue

**URL:** <https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [October 2, 2025, 2:07pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158 "2025-10-02T14:07:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [October 2, 2025, 2:07pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158/1 "2025-10-02T14:07:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 2, 2025, 2:10pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158/2 "2025-10-02T14:10:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![EMarsupial](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@EMarsupial](https://forum.inductiveautomation.com/u/EMarsupial)\
**Post date:** [October 2, 2025, 2:10pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158/3 "2025-10-02T14:10:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 2, 2025, 2:12pm UTC](https://forum.inductiveautomation.com/t/tag-change-script-newvalue/111158/4 "2025-10-02T14:12:29Z")

</div>

You don't have to guess. The event object has the tag path on it: [Gateway Event Scripts | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.3/platform/scripting/scripting-in-ignition/gateway-event-scripts#the-event-object)
