Page 1 of 1

Trigger on "notification on statusbar" exclude certain text

Posted: 06 Jun 2016 14:12
by wfrcrd
Is it possibile?
I've tried regular expression but no results,
thank you in advice !

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 06 Jun 2016 19:18
by Martin
I recommend to keep the trigger simple. Execute the flow and then use a condition Expression with a script like contains(notification_text, "TheTextToExclude") and continue the flow on the false-branch (or use NOT or ! to invert the result of the contains function).

Regards,
Martin

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 06 Jun 2016 19:53
by wfrcrd
Martin wrote:I recommend to keep the trigger simple. Execute the flow and then use a condition Expression with a script like contains(notification_text, "TheTextToExclude") and continue the flow on the false-branch (or use NOT or ! to invert the result of the contains function).

Regards,
Martin
Thanks Martin,
I think I need to know more about the Expression condition, where may I find a guide for it ?

I've tried to match the text "+39", but don't work.

Posted: 06 Jun 2016 20:24
by wfrcrd
I've forgot the word "contains"

now seems working, another little step ahead, thank you!

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 07 Jun 2016 06:50
by wfrcrd
Martin,
this work to match the presence of the string ZZZ

contains(notification_text, "ZZZ")

it's possible to have the right string witch match the exclude condition?

I mean :

1) exclude A

?(notification_text, "A")

2) exclude A and B

3) exclude A or B


really thank you!!

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 08 Jun 2016 08:16
by MURTUMA
Like Martin said in his response:
NOT contains(.....

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 08 Jun 2016 09:19
by wfrcrd
Thank you Mortuma: so

0) text contains ZZZ :

contains(notification_text, "ZZZ")

1) exclude A :

not contains(notification_text, "A")


This one seems correct too but

not contains(notification_text, "A","B")

means:

exclude A and B OR
exclude A or B ?

Sorry for bother you, but it could be useful for other users too, thank you

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 08 Jun 2016 10:45
by colabi
not contains(notification_text, "A") OR
not contains(notification_text, "B")
...
not contains(notification_text, "A") AND
not contains(notification_text, "B")

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 08 Jun 2016 13:32
by Bushmills
not contains(notification_text, "A") AND
not contains(notification_text, "B")
should be equivalent to: not (contains(notification_text, "A") OR contains(notification_text, "B")) - with the "not" possibly replacable by the "No" branch of a condition.
For OR based logic, change accordingly.

Re: Trigger on "notification on statusbar" exclude certain t

Posted: 08 Jun 2016 16:53
by wfrcrd
Thank you !!!! :geek: