Trigger on "notification on statusbar" exclude certain text

Post your questions and help other users.

Moderator: Martin

Post Reply
wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Trigger on "notification on statusbar" exclude certain text

Post by wfrcrd » 06 Jun 2016 14:12

Is it possibile?
I've tried regular expression but no results,
thank you in advice !

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

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

Post by Martin » 06 Jun 2016 19:18

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

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

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

Post by wfrcrd » 06 Jun 2016 19:53

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.
Attachments
2016-06-06-21-46-53.png
2016-06-06-21-46-53.png (280.08 KiB) Viewed 20084 times

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Post by wfrcrd » 06 Jun 2016 20:24

I've forgot the word "contains"

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

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

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

Post by wfrcrd » 07 Jun 2016 06:50

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!!

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

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

Post by MURTUMA » 08 Jun 2016 08:16

Like Martin said in his response:
NOT contains(.....

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

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

Post by wfrcrd » 08 Jun 2016 09:19

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

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

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

Post by colabi » 08 Jun 2016 10:45

not contains(notification_text, "A") OR
not contains(notification_text, "B")
...
not contains(notification_text, "A") AND
not contains(notification_text, "B")

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

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

Post by Bushmills » 08 Jun 2016 13:32

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.

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

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

Post by wfrcrd » 08 Jun 2016 16:53

Thank you !!!! :geek:

Post Reply