# Timer Component Value reset

**URL:** <https://forum.inductiveautomation.com/t/timer-component-value-reset/12300>\
**Category:** Ignition\
**Created:** [October 28, 2016, 2:31pm UTC](https://forum.inductiveautomation.com/t/timer-component-value-reset/12300 "2016-10-28T14:31:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [October 28, 2016, 2:31pm UTC](https://forum.inductiveautomation.com/t/timer-component-value-reset/12300/1 "2016-10-28T14:31:44Z")

</div>

Hi guys, I’m trying to work on a window to count down from some number down to till specific trigger makes it stop. I’ve bind the Running property of the timer to a tag so whenever the tag goes off I want it to start counting down from 12 to zero and negative. Where I seem to have a brain fart is the resetting the timer, I tried using this under the propertyChange event handler of the timer component scripting:

```auto
if event.propertyName == "Running?" and event.newValue == 0:
	event.source.value = 12
```

what am I doing wrong? wouldn’t this basically first checks that the property that was changed is Running and then checks if the new value is zero meaning its off and then set the value property of the timer to 12?  
I’m trying to use the timer component because this will be a screen that’s going to be open in front of the operator and figured instead of using tags for each station I go ahead and take advantage of the timer component. Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 31, 2016, 4:07pm UTC](https://forum.inductiveautomation.com/t/timer-component-value-reset/12300/2 "2016-10-31T16:07:34Z")

</div>

Property names in scripting/the backend are not the same as the property names displayed in the property editor. If you hover over the name of the property in the property editor, there will be a ‘Property Scripting Name’ hint. For the timer in particular, the ‘Running?’ property is just ‘running’ in scripting - all lowercase, no punctuation.

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [October 31, 2016, 6:45pm UTC](https://forum.inductiveautomation.com/t/timer-component-value-reset/12300/3 "2016-10-31T18:45:02Z")

</div>

Thanks for that Paul, as usual it’s the little things that traps me. I was losing my mind trying to figure this out… ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")
