cant get this filter to work, which removes notifications that DON’T contain certain keywords
Moderator: Martin
cant get this filter to work, which removes notifications that DON’T contain certain keywords
ive created a automagic to block notifications from a particular twitter account that donot contain the word “bet” but its not working, any idea what ive done wrong? https://dl3.pushbulletusercontent.com/W ... 163831.xml
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
You don't have a trigger specified...
This is utterly untested but should get you going in the right direction... (I don't have Twitter, so you need to fill in that field)
This is utterly untested but should get you going in the right direction... (I don't have Twitter, so you need to fill in that field)
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
Is this the right expression to use if you only want to keep notifications that have the word "bet"?
contains(notification_text, "bet")
contains(notification_text, "bet")
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
@joego : yes. That expression will evaluted to 'true' if the notif text contain "bet" inside. Then use the true branch to go to your main branch of flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
For some reason jassons script with that expression is not working, as you can see here it's not removing notifications that don't contain the word "bet" - any idea what changes I should make? https://i.imgur.com/6qNBvKP.png
download/file.php?id=1807
download/file.php?id=1807
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
Code: Select all
contains(notification_text, "bet")
You need to either NOT/! or use the false branch.
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
Thanks, Would this be how i'd write the expression:
Code: Select all
contains NOT/!(notification_text, "bet")
Re: cant get this filter to work, which removes notifications that DON’T contain certain keywords
You would use either
The true branch of an expression
Or
Or the false branch of
A these match notification_text if the string 'bet' is not found. This doesn't care about words.
The true branch of an expression
Code: Select all
NOT contain(notification_text, "bet")
Code: Select all
!contains(notification_text, "bet")
Code: Select all
contains(notification_text, "bet") == false
Code: Select all
contain(notification_text, "bet")