Assess whether one or more conditions are true or false. Conditions can be used to evaluate values on whether they match, partially match, start with, ends with, are greater than, are smaller than, etc. This is similar to an IF statement in computer programming.
Note:
Avoid using special characters (e.g., (), <>, +=, etc.) or words like "and" and "or" in the Condition to be evaluated input, unless being used as an operator for separating conditions. If values contain these characters or words, they can only be passed into the expression as a variable.
Common use cases
Data Manipulation
Category
Logic
Inputs (what you have)
NAME | DESCRIPTION | TYPE | REQUIRED | EXAMPLE |
Condition to be evaluated | Conditions can be used to evaluate values on whether they match, partially match, start with, ends with, are greater than, are smaller than, etc. See list of operators below. | Text | Yes | (2 == 4) or ("robotic process automation" contains "automation")
Note: this will result in "Yes" as an outcome, since the second half of the statement is true. |
Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library section. These variables in the Data Library section are the outputs of previous Wrk Actions in the Wrkflow.
Separators
NAME | DESCRIPTION | EXAMPLE |
(<Condition>) | Parentheses can be used to determine the order of evaluation for multiple statements | (Car starts with b AND Car starts with c) OR 1 == 1 - > True
Car starts with b AND (Car starts with c OR 1 == 1) - > False |
AND | Will check if both statements are true | Car starts with c AND Car starts with b - > False |
OR | Will check if either statement is True | Car starts with c OR Car starts with b - > True |
Operators (Note: Operators are case-sensitive. All Operators should be in lowercase)
OPERATOR | DESCRIPTION | TYPE | REQUIRED | EXAMPLE |
contains | Checks if a string_1 includes string_2 The validation will return true if string_2 is completely included in String_1. | String | Yes | `Car , bike, motorcycle` contains `bike` - > True `Car , bike, motorcycle` contains `bike, scooter` - > False |
does not contain | Checks if a string_1 doesn’t include string_2 The validation will return false only if string_2 is completely included in String_1 | String | Yes | `Car , bike, motorcycle` does not contain `bike` - >False `Car , bike, motorcycle` does not contain `bike, scooter` - > True `Car , bike, motorcycle` does not contain ` scooter` - > True |
exact match | Checks if a string_1is an exact match to string_2 | String | Yes | `Car , bike, motorcycle` exact match `bike` - >False `Car , bike, motorcycle` exact match `Car , bike, motorcycle` - > True |
partial match | Checks if a string_1 partially matches string_2 Partial match is when at list one word from one of the two strings is found in the second one. exact match is also partial match | String | Yes | `Car , bike, motorcycle` partial match `bike` - >True `Car , bike, motorcycle` partial match `bike, scooter` - > True `Car , bike, motorcycle` partial match ` scooter` - > False |
not a match | Opposite of exact match | String | Yes | `Car , bike, motorcycle` not a match `bike` - > True `Car , bike, motorcycle` not a match `Car , bike, motorcycle` - > False |
starts with | Checks if a string_1 starts with a specified sequence of characters | String | Yes | `Car , bike, motorcycle` starts with `ca’ - > True `Car , bike, motorcycle` starts with `ba’ - > False |
does not start with | Opposite of starts with | String | Yes | `Car , bike, motorcycle` does not start with `ca’ - > False `Car , bike, motorcycle` does not start with `ba’ - > True |
ends with | Checks if a string_1 ends with a specified sequence of characters | String | Yes | `Car , bike, motorcycle` ends with `cle’ - > True `Car , bike, motorcycle` ends with `ba’ - > False |
does not end with | Opposite of ends with | String | Yes | `Car , bike, motorcycle` does not end with `cle’ - > False `Car , bike, motorcycle` does not end with `ba’ - > True |
is null | Checks if a specific string is null ( empty) or a number was not initialized | String | Yes | ({variable} is null) (Where variable=``) -> T Note: To be combined with other conditions using "AND" or "OR" this operator must be surrounded in brackets () |
is not null | Opposite of is null | String | Yes | Car , bike, motorcycle` Is not null -> True Note: To be combined with other conditions using "AND" or "OR" this operator must be surrounded in brackets () |
> | Checks if a number_1 is greater than number_2 | Number | Yes | 1>1 -> False |
>= | Checks if a number_1 is greater or equal to number_2 | Number | Yes | 1>=1 -> True |
< | Checks if a number_1 is less than number_2 | Number | Yes | 1<2 -> True |
<= | Checks if a number_1 is less or equal to number_2 | Number | Yes | 1<=2 -> True |
== | Checks if a number_1 is equal to number_2 | Number | Yes | 1==2 -> False |
<> | Checks if a number_1 is not equal to number_2 | Number | Yes | 1 <> 2 -> True |
is true | Checks if a boolean expression is true | Boolean | Yes | False is true -> False |
is false | Checks if a boolean expression is true | Boolean | Yes | False is false -> True |
is empty | Checks if an array/list is empty | List | Yes | `Car , bike, motorcycle` is empty -> False |
is not empty | Checks if an array/list is not empty | List | Yes | `Car , bike, motorcycle` is not empty -> True |
in | Checks if a number/string is included in a list | List | Yes | `Car , bike` in `Car , bike, motorcycle` -> True |
not in | Checks if a number/string is not included in a list | List | Yes | `Car , bike` not in `Car , bike, motorcycle` -> False |
Outcomes
NAME | DESCRIPTION |
Yes | This status is selected when the evaluated condition is true. |
No | This status is selected when the evaluated condition is false. |
Unsuccessful | This status is selected in the event of the following scenarios: - Expression is missing or doesn't make logical sense |
Requirements
N/A