# Script returning unexpected values from alarmEvent.get

**URL:** <https://forum.inductiveautomation.com/t/script-returning-unexpected-values-from-alarmevent-get/22105>\
**Category:** Ignition\
**Created:** [January 24, 2019, 5:43pm UTC](https://forum.inductiveautomation.com/t/script-returning-unexpected-values-from-alarmevent-get/22105 "2019-01-24T17:43:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [January 24, 2019, 5:43pm UTC](https://forum.inductiveautomation.com/t/script-returning-unexpected-values-from-alarmevent-get/22105/1 "2019-01-24T17:43:52Z")

</div>

I tested an application on 7.9.9 in which I add a custom alarm property “Popup” to some tags. It works as expected and I am trying to deploy it at a customer site on 7.9.6

In the graphic you can see I added “Popup” to the UV\_ALARM\_COMM tag:

 ![ibwc_nog_alarmcomp%20-%201](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8317ca605b7b5d4034e08a389ce4c8c969a621f8.jpeg)

In the script I am trying to read “Popup” with alarmEvent.get. In my testing it worked perfectly, but at the customer site on 7.9.6 the value comes back as None. What is stranger is that the property “Name” returns what is configured, “Notes” returns a blank which is not expected, and parameters that do not exist like “nothing” and “NoTag” are returning None. In my testing on 7.9.9 the non-existent properties returned -1 instead of None. This is causing my script to mis-behave. I want it to open a window on double click of a tag like UV\_ALARM\_COMM but not do anything on other tags that don’t have the “Popup” property.

 ![ibwc_nog_alarmcomp%20-%202](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/21872e911951c366857ab4c01e7d232246935987.jpeg)

Instead, it is opening the popup on double click of every tag because the “if” statement is returning None instead of -1 for non-existent properties

 ![ibwc_nog_alarmcomp%20-%203](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/387173ee96e7d16d5b4f3b44888050b2feba5adf.jpeg)

Is there any reason why this would work on 7.9.9 but not work on 7.9.6?
