Help Centre › Building Processes
Once you understand Working with Process maps, you can add conditions to processes. Note a condition can have multiple options to check. Read How to have a condition with multiple options.
1. Add a Decision
Once on a process map:
- Click on the {{buttons:processes/add}} top right
- The following popup will appear: {{popups:decisions/add}}
- Select "Decision". The popup will change and look as follow: {{popups:decisions/add}}
- Complete the form
- For each condition you want to add, click on the " Condition" button.{{>key-operator-value-band}}
- Fill in the condition using variables (read Working with variables in RPAs), the operator and the value.
- Pick the operator. For what each one does, see the full list of operators below.
- Click "Add" once you are done.
Another way to insert a condition in your process, is to copy another activity and then to edit it. Read Working with Process maps to understand how to edit a process activity.
2. Connect the decision to the process
Once you have added the decision to the process, it may not be in the correct position on the process map, or may not be connected to the correct activities. You can drag the decision to where it should be in the process, and then connect it to the appropriate activities. For more on how to do this, read Working with Process maps.
Note that there should be at least 2 connections "exiting" the condition.
3. Set the connection labels (optional)
Once the decision is created and in the correct position within the process, it is important to indicate which activities will follow next if:
- The condition is met (TRUE)
- The condition is not met (FALSE)
Having said this, it is important to first note that there are at least two connections coming from the condition, to two different activities. Once you have confirmed it contains at least two "exiting" connections:
- Click on the first connection. The popup will show: {{popups:activities/labels}}
- Select the type of connection. If this connection should be the "TRUE" part, then leave it as is (DEFAULT / TRUE). Otherwise change it to FALSE.
- Optionally, enter the label "name". This allows you to give it as much meaning and make the process as readable as possible. Give it a name such as Yes and No respectively, or True and False.
- If it is an RPA process, you can also specify how long the bot needs to wait before going onto the next activity, and the condition for waiting (At least, At most, or Exactly).
- Click "Add" once you are done.
- Do the same for the other connection.
4. The full list of operators
A condition compares a variable against a value using an operator. The same operators are available when you filter a loop or a trigger.
= / != | Equals / does not equal. != is also written <>; both mean the same. |
> / >= | Greater than / greater than or equal to |
< / <= | Less than / less than or equal to |
between / !between | Between / not between a range, written 1..10 or 1,10. The ends count as inside. |
contain / !contain | Contains / does not contain the text |
startswith / !startswith | Starts with / does not start with the text |
endswith / !endswith | Ends with / does not end with the text |
in / !in | Is / is not one of a comma-separated list, e.g. red,green,blue |
similar / !similar | Is / is not roughly the same text (at least 80% alike), useful when spelling or spacing may vary |
match / !match | Matches / does not match a regular expression (regex), for advanced pattern checks |
empty / !empty | Is empty / is not empty. Takes no value. |
In a trigger or loop filter, a field name that does not exist makes that row fail, except with empty and !empty, where a missing field counts as empty. See Email fields for the names to use with emails.