From d8d83a37effc8580f402c597b7668c48be460615 Mon Sep 17 00:00:00 2001 From: Marco Colli Date: Fri, 30 Aug 2024 13:46:49 +0200 Subject: [PATCH] Update README: tag expressions can now include parentheses --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e0de4b..68589ca 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,9 @@ notification.deliver_to((user1_id, user2_id, user3_id), tags=('events',)) # e.g. any subscriber that has the tag "segment1" OR "segment2" notification.broadcast(tags=('segment1', 'segment2')) -# you can use boolean expressions -# they must be in the disjunctive normal form (without parenthesis) +# you can use boolean expressions +# they can include parentheses and the operators !, &&, || (from highest to lowest precedence) +# https://pushpad.xyz/docs/tags notification.broadcast(tags='zip_code:28865 && !optout:local_events || friend_of:Organizer123') notification.deliver_to((user1_id, user2_id), tags=('tag1 && tag2', 'tag3')) # equal to 'tag1 && tag2 || tag3'