# Property change event on numeric label repeats 3 times

**URL:** <https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004>\
**Category:** Ignition\
**Created:** [May 11, 2018, 7:37pm UTC](https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004 "2018-05-11T19:37:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboyd](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@dboyd](https://forum.inductiveautomation.com/u/dboyd)\
**Post date:** [May 11, 2018, 7:37pm UTC](https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004/1 "2018-05-11T19:37:03Z")

</div>

Hi All:

I have a script running on a numeric label that fires on a property change event of that label.

Here is a basic idea what I’m trying to do once the property change event happens:

label1.value = label1.value + 10

However, when the event triggers that script, it does so three times. The numeric label is tied to a ‘minute’ tag from my CLX. Basically wanting to increment a value by n everytime a minute passes but instead I’m getting n x 3. I’m assuming that this event is firing three times but I can’t for the life of me figure out how to only look at it once.

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [May 11, 2018, 7:48pm UTC](https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004/2 "2018-05-11T19:48:56Z")

</div>

Can you post the whole script?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 11, 2018, 7:49pm UTC](https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004/3 "2018-05-11T19:49:42Z")

</div>

Hi! Welcome to the forum!

at the beginning of the script, put in:

```auto
print event.propertyName

```

Then, open up the console (Tools -\> Console , or Ctrl+Shift+C), and see what’s firing the script. You’ll see the event really is fired multiple times, from different properties.

Then, when you have the event you really want to look for, use an if statement:

```auto
if event.propertyName == 'nameOfTheEvent':
  do_some_stuff

```

---

<div class="post-metadata">

**Author:** ![dboyd](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@dboyd](https://forum.inductiveautomation.com/u/dboyd)\
**Post date:** [May 14, 2018, 12:22pm UTC](https://forum.inductiveautomation.com/t/property-change-event-on-numeric-label-repeats-3-times/18004/4 "2018-05-14T12:22:50Z")

</div>

Terrific info Jordan. Did exactly what I needed. Thank you!
