# Double Fire on Property Change Event When Publishing to Project

**URL:** <https://forum.inductiveautomation.com/t/double-fire-on-property-change-event-when-publishing-to-project/33433>\
**Category:** Ignition\
**Created:** [March 26, 2020, 1:56pm UTC](https://forum.inductiveautomation.com/t/double-fire-on-property-change-event-when-publishing-to-project/33433 "2020-03-26T13:56:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [March 26, 2020, 1:56pm UTC](https://forum.inductiveautomation.com/t/double-fire-on-property-change-event-when-publishing-to-project/33433/1 "2020-03-26T13:56:33Z")

</div>

I have a property change event on a component, and it works perfect except that it fires whenever I update the project and the oldValue is still 0. Any ideas on how to mitigate this?

```auto
if event.propertyName == 'value':
    if event.oldValue == 0:
        Do something

```

---

<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:** [March 26, 2020, 2:57pm UTC](https://forum.inductiveautomation.com/t/double-fire-on-property-change-event-when-publishing-to-project/33433/2 "2020-03-26T14:57:49Z")

</div>

Is there a binding on this property? If so, you can’t stop it. All binding evaluate at least once. Also, property change events are actually property “assignment” events. Assigning the same value to a property will fire these events, in most cases.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [March 26, 2020, 3:00pm UTC](https://forum.inductiveautomation.com/t/double-fire-on-property-change-event-when-publishing-to-project/33433/3 "2020-03-26T15:00:57Z")

</div>

Yes, the value has a tag binding. I thought that might be why it was firing. I will have to check another component value or custom property value in tandem with the `event.oldValue` to allow the script to execute.
