# Value Changed Tag Event Script don't work

**URL:** <https://forum.inductiveautomation.com/t/value-changed-tag-event-script-dont-work/25363>\
**Category:** Ignition\
**Created:** [May 28, 2019, 3:24pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-dont-work/25363 "2019-05-28T15:24:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeraGarcia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/geragarcia/32/18471_2.png) [@GeraGarcia](https://forum.inductiveautomation.com/u/GeraGarcia)\
**Post date:** [May 28, 2019, 3:24pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-dont-work/25363/1 "2019-05-28T15:24:19Z")

</div>

Don’t run one value changed into a Tag Event Script of a memory variable declared as Boolean this script tries to reset a other several memory variables declared as float,the program is as follows:

```auto
	if currentValue.value:
		system.tag.write("[.]Bascula_U70_tot",0)
		system.tag.write("[.]Bascula_CD_tot",0)
		system.tag.write("[.]Bascula_FM_tot",0)
		system.tag.write("[.]Bascula_FV_tot",0)
		system.tag.write("[.]Bascula_HY_tot",0)
		system.tag.write("[.]Bascula_LF_tot",0)
		system.tag.write("[.]Bascula_MAU_tot",0)
		system.tag.write("[.]Bascula_OX_tot",0)
		system.tag.write("[.]Bascula_R-2_tot",0)
		system.tag.write("[.]Bascula_SI_tot",0)
		system.tag.write("[.]Bascula_TCL_tot",0)
		system.tag.write("[.]Bascula_U30_tot",0)
		system.tag.write("[.]Bascula_U70_tot",0)

```

I only want to run this script when the variable change only in the false-true transition.

Regards Gerardo Garcia

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [May 28, 2019, 3:40pm UTC](https://forum.inductiveautomation.com/t/value-changed-tag-event-script-dont-work/25363/2 "2019-05-28T15:40:58Z")

</div>

```auto
If currentValue.value == True AND previousValue.Value == False:
    .....

```
