# Value Changed Not Updating

**URL:** <https://forum.inductiveautomation.com/t/value-changed-not-updating/21246>\
**Category:** Ignition\
**Created:** [December 5, 2018, 9:11pm UTC](https://forum.inductiveautomation.com/t/value-changed-not-updating/21246 "2018-12-05T21:11:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.thompson](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@michael.thompson](https://forum.inductiveautomation.com/u/michael.thompson)\
**Post date:** [December 5, 2018, 9:11pm UTC](https://forum.inductiveautomation.com/t/value-changed-not-updating/21246/1 "2018-12-05T21:11:37Z")

</div>

In a UDT named ‘TestTag’ containing a tag named ‘En’, and another tag named ‘TagB’, I am using a ‘Value Changed’ event script on the ‘En’ tag to enable/disable ‘TagB’.  
When I have this script enabled, the value in ‘En’ does not update until the next time it changes. For instance, if I enter ‘1’, it does not change. If I enter ‘2’, it changes to ‘1’. Then I enter ‘3’, and it changes to ‘2’. Why is it lagging behind 1 value? If I disable this script, ‘En’ updates as I would expect. Is there something that has to be done to handle the update, when using this event?  
Here is the code I have in the event script:  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/inductiveautomation/original/2X/d/dbb13a796e6fab4ba3c2f063c688aff6486f0785.PNG)
