---
description: In this section you will learn about Rules
---

# Rules

Rule steps allow you to run alternative or simultaneous sequences based on specific conditions.

There are three types of rule steps:

* **Conditions** - allows you to set up a conditional logic that will create and (later) run different workflow branches based on whether a condition (or conditions for the "Switch") is met
* **Parallelize** - allows running multiple branches in parallel, simultaneously
* **Delay** - can specify the delay (in seconds) between the steps

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FKdwHh3eLanKGe84WSsBb%2Fdznxbt.png?alt=media\&token=ba5dca9c-e189-422f-af71-5be1ab529513)

### Conditions

#### **Yes/No condition**&#x20;

It creates two branches in the workflow tree and one condition which, if met, will run the "Yes" branch and if not met, will run the "No" branch.

In the majority of cases, to create a simple **IF rule**, you'll use the **EQ()** formula **(1)**. It has two values (arguments), that can be static or could be referenced dynamically from other components **(2)** or pretty much anywhere in the app.

{% hint style="info" %}
If using **text** (string) for a condition, put it into the quotes "\_"
{% endhint %}

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F5saNl36qJ1VA2L0FPO2e%2Fsrbtf.png?alt=media\&token=f3ac5bd6-f439-4909-8e6a-53740a69f1c2)

#### **Switch condition**&#x20;

It allows to creation of multiple branches and sets an individual rule for each branch. Only when an individual condition is met will the corresponding branch run, or you can set an _ELSE_ condition to run when other conditions are not met.

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FdZEApy4DkDEClqqLhKuC%2Fszvxcr.png?alt=media\&token=4dee1435-b6d3-49f8-bff0-3d701f8dc13e)

### Parallelize

This rule step allows the creation of multiple branches, all of which will **run simultaneously** (in parallel). It's effectively the same as the "Switch" rule, where each condition is set to "1" (true)

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FcpO7ZA0MWTunoq8Kmmcx%2Fdznxtcf.JPG?alt=media\&token=d08ec757-aaf2-40df-9ebc-501561e8701d)

### Delay

With the **delay step**, you can insert a time lag between steps so that the next step will "wait" N seconds after the previous step is fired

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FvPivfEnX4fQYTOb67Dc0%2Frdxhct.JPG?alt=media\&token=2bd276fa-948f-497b-a504-5130a7ca9ba7)
