# Tag Event Change

**URL:** <https://forum.inductiveautomation.com/t/tag-event-change/21585>\
**Category:** General Discussion\
**Tags:** ignition79\
**Created:** [December 24, 2018, 4:39am UTC](https://forum.inductiveautomation.com/t/tag-event-change/21585 "2018-12-24T04:39:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngchonghan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ngchonghan/32/13420_2.png) [@ngchonghan](https://forum.inductiveautomation.com/u/ngchonghan)\
**Post date:** [December 24, 2018, 4:39am UTC](https://forum.inductiveautomation.com/t/tag-event-change/21585/1 "2018-12-24T04:39:59Z")

</div>

I have been trying to write to a tag, which is acting as a flag, when the previousValue.value == currentValue.value in a tag value changed script. However, it doesn’t work.

Anyone knows why ?

And how could i trigger the flag if the value of a tag doesn’t change ?

---

<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:** [December 24, 2018, 2:48pm UTC](https://forum.inductiveautomation.com/t/tag-event-change/21585/2 "2018-12-24T14:48:17Z")

</div>

Sounds like a job for a timer script that runs unconditionally.
