Trigger on "notification on statusbar" exclude certain text
Moderator: Martin
Trigger on "notification on statusbar" exclude certain text
Is it possibile?
I've tried regular expression but no results,
thank you in advice !
I've tried regular expression but no results,
thank you in advice !
Re: Trigger on "notification on statusbar" exclude certain t
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
Regards,
Martin
Re: Trigger on "notification on statusbar" exclude certain t
Thanks Martin,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
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.
- Attachments
-
- 2016-06-06-21-46-53.png (280.08 KiB) Viewed 20084 times
Re: Trigger on "notification on statusbar" exclude certain t
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!!
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
Like Martin said in his response:
NOT contains(.....
NOT contains(.....
Re: Trigger on "notification on statusbar" exclude certain t
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
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
not contains(notification_text, "A") OR
not contains(notification_text, "B")
...
not contains(notification_text, "A") AND
not contains(notification_text, "B")
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
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.not contains(notification_text, "A") AND
not contains(notification_text, "B")
For OR based logic, change accordingly.
Re: Trigger on "notification on statusbar" exclude certain t
Thank you !!!! 
