Conditions
You can set conditions between two actions (or between a trigger and an action) in a workflow. If the conditions are met, the workflow will proceed to the next action. If the conditions fail, the workflow will be aborted.
While defining conditions, you need to specify an ‘input’, an ‘operator’, and an ‘expected value’. The input that you use in conditions is usually the output of the preceding action/trigger.
Let’s say you have defined the following condition in your workflow:
Input: {{$a8.translated_text}}
Operator: Contains
Expected: Hello
Here, {{$a8.translated_text}} is the output of the preceding action, ‘contains’ is the operator, and ‘hello’ is the expected value. If you have set this condition, your workflow will proceed to next action only if the output text of the previous action contains the word ‘hello’ in it.
Example
Now that you know how conditions work, let’s try to use it in a workflow.
Let’s say you want to translate a particular message in Spanish, and send it to your colleague’s mobile number as SMS using Twilio. However, you want the message to be sent only if the text contains a specific word (‘Hola’, for example).
To do this, add ‘Bing Text Translator’ as well as ‘Twilio Send an SMS’ actions to your canvas. Connect these two actions, and configure them as per your requirements. (You can refer to our Creating Your First Workflow tutorial to learn more about configuring actions.) Your workflow should then look something like this:
To add a condition between these two actions, click on the connecting line between the two actions, and select the ‘settings’ symbol.
In the dialog that appears, click '+CONDITION' to set a new condition. Here, you can define the input, the Condition, as well as the expected value. In this case, the ‘Input’ will be {{$a8.translated_text}}, which is part of the output of the ‘Bing Text Translator’ action. Condition will be ‘ (Text) Contains’. You can get more details about the Condition at the bottom of the page. Lastly, the ‘expected’ value will be ‘Hola’ because we want the translated text to contain the word ‘Hola’.
Similarly, you can add multiple conditions in this dialog.
Once you are done with this, click on done and run the workflow. If the translated text contains the word ‘Hola’, Built.io Flow will send an SMS to your colleague. However, if the text does not include ‘Hola’, the workflow will be aborted immediately.
You can also add another action that defines the task to be performed if the condition is not met. Let’s say you want to get notified via email that the message was not sent because the condition was not met. To do this, we will connect ‘Bing Text Translator’ to another action ‘Gmail Send Mail’.
Configure this action, and enter an appropriate body text, such as ‘The SMS was sent to the recipient because the text does not contain Hola’. Next, configure the connecting line between ‘Bing Text Translator’ and ‘Gmail Send Mail’, and specify a condition that the output ‘(Text) DoesNotContain’ the word Hola (in Expected).
When you run the workflow, Built.io Flow will first translate the given message in Spanish. If the output contains ‘Hola’, Built.io Flow will send the message in form of SMS to the recipient’s mobile number. If the output does not contain ‘Hola’, it will send you an email notification.
Now that you know how to set conditions, let us understand the various types of conditions that can be used in a workflow.
1. (Text) Matches
The input value (text) should match the text you specify in the Expected field. The match operation is not case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Hola’)
Operator: (Text) Matches
Expected: Hola
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Hola) matches the expected value (which is Hola). If the defined condition is met, the workflow will proceed to the next action.
2. (Text) Exactly Matches
The input value (text) should strictly match the text you specify in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘hola’)
Operator: (Text) Exactly Matches
Expected: Hola
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is hola) exactly matches the expected value (which is Hola). If the defined condition is met, the workflow will proceed to the next action. Else, it will terminate the workflow.
In this case, since input value (hola) ≠ expected value (Hola), the workflow will not proceed to the next action.
3. (Text) Does Not Match
The input value (text) should not match the text specified in the Expected field. This operation is not case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘hola’)
Operator: (Text) Does Not Match
Expected: How are you
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is hola) matches the expected value (which is How are you). In this case, the input value does not match the expected value. Since the condition is met, the workflow will proceed to the next action.
4. (Text) Does Not Exactly Match
The input value (text) should not exactly match the text specified in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘hola’)
Operator: (Text) Does Not Exactly Match
Expected: Hola
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is hola) matches the expected value (which is Hola). In this case, the input value and the expected value do not have an exact match. Since the condition is met, the workflow will proceed to the next action.
5. (Text) Contains
The input value (text) should contain the text specified in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘ Hola como estas’)
Operator: (Text) Contains
Expected: Hola
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Hola como estas) contains the expected value (which is Hola). If the defined condition is met, the workflow will proceed to the next action.
6. (Text) Does Not Contain
The input value should not contain the text specified in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Hola’)
Operator: (Text) Does Not Contain
Expected: Workflow Test
When you run the flow, it will first check if the value of {{$a8.translated_text}} (which is Hola) contains the expected value (which is Test). If it does, the workflow will not proceed to the next action.
7. (Text) Starts With
The input value (text) should start with text specified in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Demo Workflow’)
Operator: (Text) Starts With
Expected: Demo
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Demo Workflow) starts with the expected value (which is Demo). If the defined condition is met, the workflow will proceed to the next action.
8. (Text) Does Not Start With
The input value (text) should not start with text specified in the Expected field. This operation is not case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Demo Workflow’)
Operator: (Text) Does Not Start With
Expected: demo
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Demo Workflow) starts with the expected value (which is demo). It also checks for case sensitivity. If the input value does not start with value specified in ‘Expected’, the workflow will proceed to the next action.
9. (Text) Ends With
The input value (text) should end with the text that is specified in the Expected field. This operation is case sensitive. Note that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Demo Workflow’)
Operator: (Text) Ends With
Expected: Workflow
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Demo-Workflow) end with the expected value (which is Workflow). If the defined condition is met, the workflow will proceed to the next action.
10. (Text) Does Not End With
The input value (text) should not end with the value specified in the Expected field. This operation is not case sensitive. Not that the input value should always be the output of the previous action, e.g., {{$a8.translated_text}}.
Example:
Input value: {{$a8.translated_text}}
(let’s assume the value of this is ‘Demo Workflow’)
Operator: (Text) Does Not End With
Expected: Workflow
When you run the workflow, it will first check if the value of {{$a8.translated_text}} (which is Demo Workflow) ends with the expected value (which is workflow). If the defined condition is met, the workflow will proceed to the next action.
11. (Text) Is Alphanumeric
The input value (text) should be an alphanumeric value. In this case, you don't need to specify a value in Expected. To set it as 'isNotAlphanumeric', specify false in Expected. The input value should always be the output of the previous action, e.g., {{$a8.id}}.
Example:
Input value: {{$a8.id}}
(let’s assume the value of this is ‘ABC1234’)
Operator: (Text) Is Alphanumeric
When you run the workflow, it will first check if the value of {{$a8.id}} (which is ABC1234) is alphanumeric. If the defined condition is met, the workflow will proceed to the next action.
In case you enter ‘False’ in ‘Expected’, the workflow will proceed to the next action only if the input value is not an alphanumeric value.
12. (Text) Is Empty
The input value (text) should be empty. In this case, you don't need to specify a value in 'Expected'. To set it as 'isNotEmpty', specify false in 'Expected'. Note that the input value should always be the output of the previous action, e.g., {{$a8.text}}.
Example:
Input value: {{$a8.text}}
(let’s assume the input value is empty)
Operator: (Text) Is Empty
When you run the workflow, it will first check if the value of {{$a8.text}} is empty. If it is, the workflow will proceed to the next action. Else, the workflow will be terminated.
13. (Number) Equals
The input value (number) should be equal to the expected value (number). Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘1’)
Operator: (Number) Equals
Expected: 1
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 1) equals the expected value (which is 1). If the defined condition is met, the workflow will proceed to the next action.
14. (Number) Not Equals
The input value (number) should not be equal to the expected value (number). Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘1’)
Operator: (Number) Equals
Expected: 2
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 1) equals or not the expected value (which is 2). If the defined condition is met, the workflow will proceed to the next action.
In this case, the value of {{$a7.notebooks[0].updateSequenceNum}} ≠ expected value. Hence, the workflow will proceed to the next action.
15. (Number) Greater Than
The input value (number) should be greater than the expected value. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘10’)
Operator: (Number) Greater Than
Expected: 9
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 10) is greater than the expected value (which is 9). If the defined condition is met, the workflow will proceed to the next action.
16. (Number) Greater Than Equals
The input value (number) should either be greater than or equal to the expected value. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘10’)
Operator: (Number) Greater Than Equals
Expected: 10
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 10) is greater than or equal to the expected value (which is 10). If the defined condition is met, the workflow will proceed to the next action.
17. (Number) Less Than
The input value (number) should be less than the expected value. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘10’)
Operator: (Number) Less Than
Expected: 11
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 10) is less than the expected value (which is 11). If the defined condition is met, the workflow will proceed to the next action.
18. (Number) Less Than Equals
The input value (number) should be less than or equal to the expected value. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘10’)
Operator: (Number) Less Than Equals
Expected: 10
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 10) is less than or equal to the expected value (which is 10). If the defined condition is met, the workflow will proceed to the next action.
19. (Number) Is Negative
The input value should be negative. In this case, you need not specify any value in ‘Expected’. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘-10’)
Operator: (Number) Is Negative
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is -10) is negative. If the defined condition is met, the workflow will proceed to the next action.
20. (Number) Is Positive
The input value should be positive. In this case, you need not specify any value in ‘Expected’. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].updateSequenceNum}}.
Example:
Input value: {{$a7.notebooks[0].updateSequenceNum}}
(let’s assume the value of this is ‘10’)
Operator: (Number) Is Positive
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].updateSequenceNum}} (which is 10) is a positive number. If the defined condition is met, the workflow will proceed to the next action.
21. (Date/Time) Equals
If the input value (date/time) should be the same as the date/time specified in the Expected field. The date/time that you specify in the ‘Expected’ field should be in MM-DD-YYYY or YYYY-MM-DD format. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].date}}.
Example:
Input value: {{$a18.objects[0].date}}
(let’s assume the value of this is ‘2016-06-02’)
Operator: (Date/Time) Equals
Expected: 2016-06-02
When you run the workflow, it will first check if the value of {{$a18.objects[0].date}} (which is
2016-06-02) is equal to the expected value (which is 2016-06-02). If the defined condition is met, the workflow will proceed to the next action.
22. (Date/Time) Less Than
The input value (date/time) should be a date/time before the value specified in Expected. The date/time that you specify in the ‘Expected’ field should be in MM-DD-YY or YYYY-MM-DD format. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].date}}.
Example:
Input value: {{$a18.objects[0].date}}
(let’s assume the value of this is ‘2016-06-02’)
Operator: (Date/Time) Less Than
Expected: 2016-06-03
When you run the workflow, it will first check if the value of {{$a18.objects[0].date}} (which is
2016-06-02) is a date/time before the date/time specified in the expected field (which is 2016-06-03). If the defined condition is met, the workflow will proceed to the next action.
23. (Date/Time) Less Than Equals
The input value (date/time) should be a date/time before or the same as the value specified in Expected. The date/time that you specify in the ‘Expected’ field should be in MM-DD-YY or YYYY-MM-DD format. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].date}}.
Example:
Input value: {{$a18.objects[0].date}}
(let’s assume the value of this is ‘2016-06-02’)
Operator: (Date/Time) Less Than Equals
Expected: 2016-06-02
When you run the workflow, it will first check if the value of {{$a18.objects[0].date}} (which is
2016-06-02) is a date/time before or same as the date/time specified in the expected field (which is 2016-06-02). If the defined condition is met, the workflow will proceed to the next action.
24. (Date/Time) Greater Than
The input value (date/time) should be a date/time after the value specified in ‘Expected’. The date/time that you specify in the ‘Expected’ field should be in MM-DD-YY or YYYY-MM-DD format. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].date}}.
Example:
Input value: {{$a18.objects[0].date}}
(let’s assume the value of this is ‘2016-06-02’)
Operator: (Date/Time) Greater Than
Expected: 2016-06-01
When you run the workflow, it will first check if the value of {{$a18.objects[0].date}} (which is
2016-06-02) is a date/time after the date/time specified in the expected field (which is 2016-06-01). If the defined condition is met, the workflow will proceed to the next action.
25. (Date/Time) Greater Than Equals
The input value (date/time) should be a date/time after or the same as the value specified in Expected. The date/time that you specify in the ‘Expected’ field should be in MM-DD-YY or YYYY-MM-DD format. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].date}}.
Example:
Input value: {{$a18.objects[0].date}}
(let’s assume the value of this is ‘2016-06-02’)
Operator: (Date/Time) Greater Than Equals
Expected: 2016-06-01
When you run the workflow, it will first check if the value of {{$a18.objects[0].date}} (which is
2016-06-02) is a date/time after or the same as the date/time specified in the expected field (which is 2016-06-01). If the defined condition is met, the workflow will proceed to the next action.
26. (Array) Length Equals
The length or size of the input value (array) should be equal to the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Equals
Expected: 4
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is equal to the expected value (which is 4). If the defined condition is met, the workflow will proceed to the next action.
27. (Array) Length Does Not Equals
The length or size of the input value (array) should not be equal to the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Does Not Equals
Expected: 5
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is equal or not to the expected value (which is 5). If the defined condition is met, the workflow will proceed to the next action.
28. (Array) Length Less Than
The length or size of the input value (array) should be less than the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Less Than
Expected: 5
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is less than the expected value (which is 5). If the defined condition is met, the workflow will proceed to the next action.
29. (Array) Length Less Than Equals
The length or size of the input value (array) should be less than or same as the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Less Than Equals
Expected: 4
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is less than or equal to the expected value (which is 4). If the defined condition is met, the workflow will proceed to the next action.
30. (Array) Length Greater Than
The length or size of the input value (array) should be greater than the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Greater Than
Expected: 3
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is greater than the expected value (which is 3). If the defined condition is met, the workflow will proceed to the next action.
31. (Array) Length Greater than Equals
The length or size of the input value (array) should be greater than or equal to the length specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Length Greater Than Equals
Expected: 4
When you run the workflow, it will first check if the length of {{$a23.output}} (which is
[1,2,3,4]) is greater than or equal to the expected value (which is 4). If the defined condition is met, the workflow will proceed to the next action.
32. (Array) Is Empty
The input value should be an array that is empty. In this case, you need not specify a value in Expected. To set it as 'isNotEmpty', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is ‘[1,2,3,4]’)
Operator: (Array) Is Empty
When you run the workflow, it will first check if the value of {{$a23.output}} (which is
[1,2,3,4]) is empty or not. If the defined condition is met, the workflow will proceed to the next action.
33. (Array) Contains All Object
The input value (array) should contain all object values. In this case, you need not specify a value in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects}}.
Example:
Input value: {{$a18.objects}}
(let’s assume the value of this is an array that contains all objects)
Operator: (Array) Contains All Object
When you run the workflow, it will first check if the value of {{$a18.objects}} (which is an array) contains all objects. If the defined condition is met, the workflow will proceed to the next action.
34. (Array) Contains All String
The input value (array) should contain all string values. In this case, you need not specify a value in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a9.parents}}.
Example:
Input value: {{$a9.parents}}
(let’s assume the value of this is an array that contains all strings)
Operator: (Array) Contains All String
When you run the workflow, it will first check if the value of {{$a9.parents}} (which is an array) contains all strings. If the defined condition is met, the workflow will proceed to the next action.
35. (Array) Contains All Number
The input value (array) should contain all numbers. In this case, you need not specify a value in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a23.output}}.
Example:
Input value: {{$a23.output}}
(let’s assume the value of this is an array that contains all numbers)
Operator: (Array) Contains All Number
When you run the workflow, it will first check if the value of {{$a23.output}} (which is an array) contains all numbers or not. If the defined condition is met, the workflow will proceed to the next action.
36. (Array) Contains All Object And Has This Property
The input field should contain all objects and should contain the property (key) that you specify in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects}}.
Input value: {{$a18.objects}}
(let’s assume the value of this is an array)
Operator: (Array) Contains All Object And Has This Property
Expected: active
When you run the workflow, it will first check if the value of {{$a18.objects}} (which is
an array) contains all the object and the property key specified in ‘Expected’. If the defined condition is met, the workflow will proceed to the next action.
37. (Object) Has Property
The input value (object) should contain the property (key) that you specify in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a14.labels}}.
Example:
Input value: {{$a14.labels}}
(let’s assume the value of this is an object)
Operator: (Object) Has Property
Expected: hidden
When you run the workflow, it will first check if the value of {{$a14.labels}} (which is
an object) has the property specified in the Expected field. If the defined condition is met, the workflow will proceed to the next action.
38. (Object) Does Not Have Property
The input value (object) should not contain the property (key) that you specify in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a14.labels}}.
Example:
Input value: {{$a14.labels}}
(let’s assume the value of this is an object)
Operator: (Object) Does Not Have Property
Expected: name
When you run the workflow, it will first check if the value of {{$a14.labels}} (which is
an object) has the property specified in the Expected field or not. Here, in this example, the input value does not have the property specified in the expected field. So, the workflow will proceed to the next action.
39. (Object) Is Empty
The input value (object) should be an object that is empty. In this case, you need not specify a value in 'Expected'. To set it as 'isNotEmpty', specify false in Expected. The input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].restrictions}}.
Example:
Input value: {{$a7.notebooks[0].restrictions}}
(let’s assume the value of this object is empty)
Operator: (Object) Is Empty
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].restrictions}} (which is
an empty object) is empty. If it’s empty, the workflow will proceed to the next action.
40. (Regex) Match Pattern
The input value should match the regular expressions (regex) pattern specified in the Expected field. Note that the input value should always be the output of the previous action, e.g., {{$a9.ownerNames}}.
Example:
Input value: {{$a9.ownerNames}}
(let’s assume the value of this is 'ABC abc XYZ xyz')
Operator: (Regex) Match Pattern
Expected: /abc/i
This operation will search for 'abc' value in the input, irrespective of the casing, as the modifier ‘i’ denotes case-insensitive. Let’s understand the usage of regex special characters used in this example.
// – Finds any characters specified between the slashes
abc – Denotes the name of the owner (in this example)
Modifier 'i' – ‘i’ is a modifier that makes the search case-insensitive
When you run the workflow, it will check if the {{$a9.ownerNames}} contains ‘abc’ (without considering case sensitivity). If it does, the workflow will proceed to the next action.
41. (Boolean) Is Value True
The input value (Boolean) should be true. In this case, you need not specify a value in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].active}}.
Example:
Input value: {{$a18.objects[0].active}}
(let’s assume the value of this is true)
Operator: (Boolean) Is Value True
When you run the workflow, it will first check if the value of {{$a18.objects[0].active}} (which is ‘true’) is true. If the defined condition is met, the workflow will proceed to the next action.
42. (Boolean) Is Value False
The input value (Boolean) should be false. In this case, you need not specify a value in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].confirmed}}.
Example:
Input value: {{$a18.objects[0].confirmed}}
(let’s assume the value of this is false)
Operator: (Boolean) Is Value False
When you run the workflow, it will first check if the value of {{$a18.objects[0].confirmed}} (which is ‘false’) is false. If the defined condition is met, the workflow will proceed to the next action.
43. (Input) Exists
The input should have a valid value. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].customer}}.
Example:
Input value: {{$a18.objects[0].customer}}
(let’s assume the value of this is ‘164’)
Operator: (Input) Exists
When you run the workflow, it will first check if the value of {{$a18.objects[0].customer}} (which is 164) is a valie value. If the defined condition is met, the workflow will proceed to the next action.
44. (Input) Does Not Exist
The input does not exist if there are no fields or properties as value. Note that the input value should always be the output of the previous action, e.g., {{$a18.meta.next}}.
Example:
Input value: {{$a18.meta.next}}
(let’s assume the value has no value)
Operator: (Input) Exist
When you run the workflow, it will first check if the input {{$a18.meta.next}} contains a value or not. If the the value does not exist, the workflow will proceed to the next action.
45. (Input) Is Null
The input value should be null. In this case, you need not specify a value in Expected. To set it as 'isNotNull', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].sharedNotebooks}}.
Example:
Input value: {{$a7.notebooks[0].sharedNotebooks}}
(let’s assume the value returns null)
Operator: (Input) Is Null
When you run the workflow, it will first check if the input {{$a7.notebooks[0].sharedNotebooks}} is null. If it is, the defined condition is met, and the workflow will proceed to the next action.
46. (Input) Is String
The input value should be of String data type. In this case, you need not specify a value in Expected. To set it as 'isNotString', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].customer}}.
Example:
Input value: {{$a18.objects[0].customer}}
(let’s assume the value of this is a string)
Operator: (Input) Is String
When you run the workflow, it will first check if the value of {{$a18.objects[0].customer}} (which is 'customer') is of String data type. If it is, the defined condition is met, and the workflow will proceed to the next action.
47. (Input) Is Number
The input value should be of Number data type. In this case, you need not specify a value in Expected. To set it as 'isNotNumber', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].serviceUpdated}}.
Example:
Input value: {{$a7.notebooks[0].serviceUpdated}}
(let’s assume the value of this is a number)
Operator: (Input) Is Number
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].serviceUpdated}} is of Number data type. If it is, the defined condition is met, and the workflow will proceed to the next action.
48. (Input) Is Date
The input value should be a date in YYYY-MM-DD format. In this case, you need not specify a value in Expected. To set it as 'isNotDate', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].updated_date}}.
Example:
Input value: {{$a18.objects[0].updated_date}}
(let’s assume the value of this is a date)
Operator: (Input) Is Date
When you run the workflow, it will first check if the value of {{$a18.objects[0].updated_date}} (which is 'updated_date') is a date. If the defined condition is met, the workflow will proceed to the next action.
49. (Input) Is An Array
The input value should be of Array data type. In this case, you need not specify a value in Expected. To set it as 'isNotArray', specify false in 'Expected'. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects}}.
Example:
Input value: {{$a18.objects}}
(let’s assume the value of this is an array)
Operator: (Input) Is An Array
When you run the workflow, it will first check if the value of {{$a18.objects}} (which is an array) is an array. If the defined condition is met, the workflow will proceed to the next action.
50. (Input) Is An Object
The input value should be of Object data type. In this case, you need not specify a value in Expected. To set it as 'isNotObject', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a7.notebooks[0].restrictions}}.
Example:
Input value: {{$a7.notebooks[0].restrictions}}
(let’s assume the value of this is an object)
Operator: (Input) Is An Object
When you run the workflow, it will first check if the value of {{$a7.notebooks[0].restrictions}} is of object data type. If the defined condition is met, the workflow will proceed to the next action.
51. (Input) Is Boolean
The input value should of Boolean data type. In this case, you need not specify a value in Expected. To set it as 'isNotBoolean', specify false in Expected. Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].active}}.
Example:
Input value: {{$a18.objects[0].active}}
(let’s assume the value of this is a boolean)
Operator: (Input) Is Boolean
When you run the workflow, it will first check if the value of {{$a18.objects[0].active}} (which is boolean') is of Boolean data type. If the defined condition is met, the workflow will proceed to the next action.
52. (Input) Data Type Is
The input value should be of the data type that you specify in Expected (e.g., String, Object, Array). Note that the input value should always be the output of the previous action, e.g., {{$a18.objects[0].customer}}.
Example:
Input value: {{$a18.objects[0].customer}}
(let’s assume the value of this is ‘10’)
Operator: (Input) Data Type Is
Expected: String
When you run the workflow, it will first check if the value of {{$a18.objects[0].customer}} (which is customer) has the data type mentioned in the expected value (which is String). If the defined condition is met, the workflow will proceed to the next action.