# Client Tag Change Script - Current Value

**URL:** <https://forum.inductiveautomation.com/t/client-tag-change-script-current-value/80001>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [October 3, 2023, 10:17pm UTC](https://forum.inductiveautomation.com/t/client-tag-change-script-current-value/80001 "2023-10-03T22:17:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [October 3, 2023, 10:17pm UTC](https://forum.inductiveautomation.com/t/client-tag-change-script-current-value/80001/1 "2023-10-03T22:17:29Z")

</div>

In a client tag change script, since you can specify multiple tags, how do I access the value of the changed tag? (in this instance, I only have one tag triggering the event).

Do I have to manually read the tag or is there a `currentValue` that I can read?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 3, 2023, 10:21pm UTC](https://forum.inductiveautomation.com/t/client-tag-change-script-current-value/80001/2 "2023-10-03T22:21:56Z")

</div>

You get essentially the same objects in the script context that you get for a [gateway tag change event](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts) (project, not on the tag).

Use `dir()` in your event script if in doubt.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [October 4, 2023, 12:33pm UTC](https://forum.inductiveautomation.com/t/client-tag-change-script-current-value/80001/3 "2023-10-04T12:33:15Z")

</div>

Since I only have the one tag it looks like `newValue.getValue()` or `event.getCurrentValue()` would be what I'm looking for.

In the case with multiple tags, one would have to check the tag path via `event.getTagPath()` if things are conditional based on the tag. However, in that case it may just be easier to use 2 different tag change scripts and a shared script in the project library... but I digress.
