# TagChange behavior

**URL:** <https://forum.inductiveautomation.com/t/tagchange-behavior/7639>\
**Category:** Ignition\
**Created:** [November 28, 2013, 3:48pm UTC](https://forum.inductiveautomation.com/t/tagchange-behavior/7639 "2013-11-28T15:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anadal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/anadal/32/5740_2.png) [@anadal](https://forum.inductiveautomation.com/u/anadal)\
**Post date:** [November 28, 2013, 3:48pm UTC](https://forum.inductiveautomation.com/t/tagchange-behavior/7639/1 "2013-11-28T15:48:58Z")

</div>

Hi again, I’ve been testing the way that Gateway TagChange Scripts behaves when the tag changes several times before the first thread finish. So, the result was that the threads runs serial and the triggers accumulate into a stack like a LIFO stack (Last Input First Output), is that rigth?

I.e. tag values were: 6 then 7 then 8 and finally 9

and the threads respond to 6 then 9 then 8 and finally 7

I just want to know if that is the way it works, thanks!

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [December 11, 2013, 8:05pm UTC](https://forum.inductiveautomation.com/t/tagchange-behavior/7639/2 "2013-12-11T20:05:50Z")

</div>

Hi,

No, when the changes occur, the event scripts get submitted to a multi-thread executor to be run as quickly as possible. The results could depend on how your testing, but I don’t think there’s any reliable way to ensure the ordering.

In Ignition 7.7, in addition to the current method of defining event scripts, you’ll be able to define tag change events directly on tags, and I know that these execute in order.

Regards,
