# "Value Changed" Tag Event Script for Array Tag

**URL:** <https://forum.inductiveautomation.com/t/value-changed-tag-event-script-for-array-tag/73545>\
**Category:** Ignition\
**Created:** [May 10, 2023, 3:54pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-for-array-tag/73545 "2023-05-10T15:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Riebel](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Alexandre\_Riebel](https://forum.inductiveautomation.com/u/Alexandre_Riebel)\
**Post date:** [May 10, 2023, 3:54pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-for-array-tag/73545/1 "2023-05-10T15:54:45Z")

</div>

Hi all,

I have a Float Array tag and I was hoping to configure a Value Changed Tag Event script that triggers any time any of my array elements change value. From testing it a bit, it seems like the Value Changed script works and will trigger every time any of my array elements changes, but there is no way to identify exactly which array element changed - just that _something_ in the array changed value. Is that right? I would really like to be able to identify the index of the element that changed if possible.

Thanks.

---

<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:** [May 10, 2023, 3:58pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-for-array-tag/73545/2 "2023-05-10T15:58:13Z")

</div>

You would need to compare it to the previous value (it's made available to you) to figure out what changed.

Keep in mind that one element could have changed, multiple could have changed, or the array length could have changed, so it's trickier than you may think.
