# Alarm Notification Priority

**URL:** <https://forum.inductiveautomation.com/t/alarm-notification-priority/82250>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 22, 2023, 1:27pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-priority/82250 "2023-11-22T13:27:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 22, 2023, 1:27pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-priority/82250/1 "2023-11-22T13:27:55Z")

</div>

I am trying to run alarms through a switch for the priority as follows:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3c02c60cbb78c7a97aebfc545bb5412d5e8e44f9.png)

The docs say the {priority} is an int, but my switch doesn't work. Debug looks like it's coming though by name. [Pipeline - Filter on Alarm Priority - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Pipeline+-+Filter+on+Alarm+Priority)

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

It works if I test for "Low", "High" etc

Are the docs incorrect or am I interpreting it wrong?

---

<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:** [November 22, 2023, 4:13pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-priority/82250/2 "2023-11-22T16:13:44Z")

</div>

The docs are correct - they talk about comparison operations within an expression; in those cases, the expression language does some implicit coercion of the "enum" values to integers for comparison.

In a switch block, the matching works differently, so the implicit int coercion doesn't come into play. I would expect an expression of `toInt({priority})` to work with the numeric switch cases you have.

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 24, 2023, 11:14am UTC](https://forum.inductiveautomation.com/t/alarm-notification-priority/82250/3 "2023-11-24T11:14:41Z")

</div>

The notification block is the only block that is well documented:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/3/736630adb8b28bc348c13755b26d02c9878140d7.png)

I know the rest are simple by comparison, but it would be beneficial to have them in a comprehensive reference, also explaining these differences
