# IsAlarmActive Through Script

**URL:** <https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121>\
**Category:** Ignition\
**Created:** [March 11, 2022, 6:50pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121 "2022-03-11T18:50:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [March 11, 2022, 6:50pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121/1 "2022-03-11T18:50:24Z")

</div>

Is there a way to figure out if there is an active alarm for a tag through script? I see that you can do it using the isAlarmActive expression function but I would like to access it via script instead.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 11, 2022, 6:53pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121/2 "2022-03-11T18:53:40Z")

</div>

There sure is.  
[https://docs.inductiveautomation.com/display/DOC81/system.alarm.queryStatus](https://docs.inductiveautomation.com/display/DOC81/system.alarm.queryStatus)

---

<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:** [March 11, 2022, 7:35pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121/3 "2022-03-11T19:35:08Z")

</div>

If you care about a particular tag, but _not_ which particular alarm, you could also just read the alarm active sub-property of the tag.

---

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [March 14, 2022, 1:49pm UTC](https://forum.inductiveautomation.com/t/isalarmactive-through-script/57121/4 "2022-03-14T13:49:53Z")

</div>

This is exactly what I needed. I just need to know if there is any active alarm on the tag. I didn’t realize you could read the sub-properties of the tag by using system.tag.read. Thank you!
