# Gateway Event Script Tag Change

**URL:** <https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 22, 2024, 5:14pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222 "2024-04-22T17:14:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [April 22, 2024, 5:14pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222/1 "2024-04-22T17:14:08Z")

</div>

Gurus,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/14b87fa58efca082dc6a9074c7e786378662358a.png)  
According to documentation the initialChange is a bool

but for me its a int

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/1/21c3c5e3332965e249f2b566e80fab3de42b8668.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/d/4deb9e42870905611f36dd2f6edde79b5d29353d.png)

What am i doing wrong here ?

Regards.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 22, 2024, 5:19pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222/2 "2024-04-22T17:19:13Z")

</div>

Nothing, it looks like the docs are wrong, though that shouldn't stop you from treating it as a boolean in a comparison.

---

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [April 22, 2024, 5:33pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222/3 "2024-04-22T17:33:54Z")

</div>

hmm, seems i am being triggered twice so trying to find out the issue, I'll post update when i figure it out. not sure how i am getting the function triggered twice.

---

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [April 22, 2024, 6:08pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222/4 "2024-04-22T18:08:09Z")

</div>

I've added a timestamp but the timestamp is same ! but i get two logs with same time. how do i debug this issue ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9a072bf988b386b51ee47780970e6328589f94f6.png)

---

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [April 22, 2024, 6:14pm UTC](https://forum.inductiveautomation.com/t/gateway-event-script-tag-change/89222/5 "2024-04-22T18:14:22Z")

</div>

Sorry my nano seconds are different, i'll investigate the issue and let you know.
