Disable alarm on bad quality

I try to bind an expression on Enable parameter of tag alarm to disable the alarm when the tag quality is not Good
I tried the following methods but the behavior does not work properly.

{Quality} = 192
{Quality} = “Good”
isGood({Quality})

You can use:
toStr({Quality}) = 'Good'

Sorry, but it doesn’t work on my side. The alarm did not display.

Ah, I think I see the issue. The {Quality} tag is the quality at the time the alarm is evaluated. If it’s disabled, it can’t be evaluated, hence it will never become re-enabled.

You can use:
toStr({[.]Test Alarm.quality}) = 'Good'
or
toStr(tag({fullItemPath} + ".quality")) = 'Good'