Watcher multiple if statements or and if

Hay all

Is it possible in an watcher condition script to set and and if for exanple

alert only if threshold belowmax_threshold but above min_threshold

Trying to set the alert to auto close, but not want this action to trigger every time


if you are using the script based condition, checking for several contents of the payload is not a problem at all. Something like this:

return ctx.payload.some_value > 1 and ctx.payload.other_value < 10

hope this helps!


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.