With conditionals you can determine whether in the specific situation the notification will be sent or not.
Examples #
Send a notification to all users when post created #
Create an event trigger when a post type change status
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2022/08/10082534/image-16.png)
Then click to button “Create”
Expand the event trigger you just create and scroll down to section Conditionals and select “Push notification if”
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2022/08/10081859/image-13-1024x500.png)
Then click to button “Add Conditional”
Click to icon plus to add condition
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2022/08/10082033/image-14.png)
Send notification in this situation is post status change “draft” => “publish” AND post type = “post”
We used variable {old_status} to get old post status and {status} get new post status
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2023/02/27044559/Screenshot-2023-02-27-at-11.45.38.png)
Send a notification to all users when product created #
Create an event trigger when a post type change status
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2023/02/27035515/Screenshot-2023-02-27-at-10.48.49-1.png)
Then click to button “Create”
Expand the event trigger you just create and scroll down to section Conditionals and select “Push notification if”
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2023/02/27035543/image-13-1024x500-1.png)
Then click to button “Add Conditional”
Click to icon plus to add condition
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2023/02/27035648/image-14.png)
Send notification in this situation is post status change “auto-draft” => “publish” AND product type = “product”
We used variable {old_status} to get old post status and {status} get new post status
![](https://cdn.rnlab.io/appcheap/wp-content/uploads/2023/02/27041327/Screenshot-2023-02-27-at-11.10.47.png)