Skip to content

Commit

Permalink
Update README: tag expressions can now include parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
collimarco authored Aug 30, 2024
1 parent ce21b92 commit 2068162
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ res, err := n.Send()
n := pushpad.Notification { Body: "Example", Tags: []string{"segment1", "segment2"} }
res, err := n.Send()

// 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
n := pushpad.Notification { Body: "Example", Tags: []string{"zip_code:28865 && !optout:local_events || friend_of:Organizer123"} }
res, err := n.Send()

Expand Down

0 comments on commit 2068162

Please sign in to comment.