Alarm Notification Priority

I am trying to run alarms through a switch for the priority as follows:
image

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

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

Are the docs incorrect or am I interpreting it wrong?

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.

1 Like

The notification block is the only block that is well documented:
image

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