Nested condition in watcher

Hi All, my requirement is check the nested watcher conditions.
if ( message = "File received" )
if ( message = "file not loaded" )
then send alert for not loading
else send alert for not receiving

We already implemented inner if else by using payload hits.
query: {
bool: {
must: [
{match_phrase: {message: file loaded }}
]
}
},
condition: {
compare: {
ctx.payload.hits.total: {
lt: 1
}
}
},
actions: {
-- SEND MAIL --
}

Please help me how to achieve the multiple conditions.

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