# Using the rule editor

**URL:** <https://community.triggre.com/t/using-the-rule-editor/753>\
**Category:** Flow parts\
**Tags:** actions, designer, rules, flow-parts\
**Created:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/using-the-rule-editor/753 "2019-12-31T23:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mar](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.triggre.com/mar/32/395_2.png) [@Mar](https://community.triggre.com/u/Mar)\
**Post date:** [December 31, 2019, 11:00pm UTC](https://community.triggre.com/t/using-the-rule-editor/753/1 "2019-12-31T23:00:00Z")

</div>

In Triggre, **Rules** are used in many places, from filtering the data you want to show in a table, looking up data to **Decisions**. In this article, we show you how to make a **Rule** for a **Decision**. The same principles apply to all places you can use **Rules** however.

The most important thing to know about **Rules** , is that they can have different outcomes. When filtering data on a **Page** , the **Rule** has to be a **True/false rule** , meaning that the outcome for is either true, or false. All records of your **Data item** for which the **Rule** is true, are included, the ones for which the **Rule** is false, are left out.

But there are more options. For a **Decision** you can use a **True/false rule** too, but also a **Rule** based on a **Pick list** , a text, a date, time span and even a number. When you use a **Pick list** as a **Rule** in a **Decision** , you can choose a path for each value of the **Pick list** for example. And for numbers you can use specific numbers and ranges of numbers in paths.

## How to use the Rule editor

For now, let’s look at an example of how to make a **True/false rule** for a **Decision**. We will make a **Rule** , in a **Decision** in a **User flow** , that indicates whether the **Current user** has the email address _[no-reply@triggre.com](mailto:no-reply@triggre.com)_ or _[noreply@triggre.com](mailto:noreply@triggre.com)_:

1. Add a **Decision** to the **User flow**. You will now see the **Rule editor** , indicating you should make a **Rule** to base the **Decision** on:  

2. The **Rule editor** is already in **Add mode** as you can see by the blue **Add button** in the lower left corner.

3. Click the green **Add button** to add a **Step** to the **Rule** , which will show what you can add:  

4. As you can see, we only have the option to add a **Property from the User flow**. If there are more options, they are shown here.

5. Select **Property from User flow** , then expand _Current user_ and select _Email_:  

6. This will add a value to your **Rule** :  

7. When the value is selected, Triggre will show you the entire name and two **Add buttons** to add a **Step** before or after. When you deselect a **Step** , the short name is shown only, in this case simply _Email_.

8. Click the right **Add button** to add a **Step** after the _Email_. Note how Triggre always shows you only those options that are possible for you to add. In this case, we can choose a sign to add:  

9. We choose **Comparison sign** and then we choose **Equals** :  

10. Our **Rule** is now updated with a **Comparison sign** after the _Email_:  

11. Notice how the _Email_ and **Add button** are both surrounded by a gray marker. This indicates the left-hand side, and right-hand side of the equation. We click the green **Add button** to add a **Specific value** :  

12. Because _Email_ is a text, Triggre will now ask you to enter a text as the specific value. We type _[no-reply@triggre.com](mailto:no-reply@triggre.com)_:  

13. When we have added the specific value, our **Rule** now looks like this:  

14. To add another email address to be checked, we have to add an **OR statement**. We start by selecting the **Equals sign** :  

15. Notice how again the left and right hand side of the equation are gray. When we now click the right **Add button** , we can add an **AND or OR statement** :  

16. We choose **OR** and now our **Rule** looks like this:  

17. Note how the **OR** also has the left-hand side and right hand side gray, but they are different than for the **Equals sign**. This is very important to remember, because Triggre will automatically place brackets depending on which item in your **Rule** you have selected.

18. Now repeat steps 2 – 5, using _[noreply@triggre.com](mailto:noreply@triggre.com)_ as the specific email address. The **Rule** will now look like this:  

19. The **Rule** is now finished. Click the blue **Add button** to leave **Add mode** in the **Rule editor** , and finish the **Wizard**.

> Tip: Should you ever encounter a situation where Triggre places the brackets in a location you didn’t expect, it’s likely you can solve that by simply selecting another item of the **Rule** and trying again.
