Skip to main content

Evaluate condition

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)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Condition to be evaluatedConditions 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.TextYes(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

NAMEDESCRIPTIONEXAMPLE
()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 - > TrueCar starts with b AND (Car starts with c OR 1 == 1) - > False
ANDWill check if both statements are trueCar starts with c AND Car starts with b - > False
ORWill check if either statement is TrueCar starts with c OR Car starts with b - > True

Operators (Note: Operators are case-sensitive. All Operators should be in lowercase)

OPERATORDESCRIPTIONTYPEREQUIREDEXAMPLE
containsChecks if a string_1 includes string_2The validation will return true if string_2 is completely included in String_1.StringYesCar , bike, motorcycle contains bike - > True ​Car , bike, motorcycle contains bike, scooter - > False
does not containChecks if a string_1 doesn’t include string_2The validation will return false only if string_2 is completely included in String_1StringYesCar , bike, motorcycle does not contain bike - >FalseCar , bike, motorcycle does not contain bike, scooter - > TrueCar , bike, motorcycle does not contain scooter - > True
exact matchChecks if a string_1is an exact match to string_2StringYesCar , bike, motorcycle exact match bike - >FalseCar , bike, motorcycle exact match Car , bike, motorcycle - > True
partial matchChecks if a string_1 partially matches string_2Partial match is when at list one word from one of the two strings is found in the second one.exact match is also partial matchStringYesCar , bike, motorcycle partial match bike - >TrueCar , bike, motorcycle partial match bike, scooter - > TrueCar , bike, motorcycle partial match scooter - > False
not a matchOpposite of exact matchStringYesCar , bike, motorcycle not a match bike - > TrueCar , bike, motorcycle not a match Car , bike, motorcycle - > False
starts withChecks if a string_1 starts with a specified sequence of charactersStringYesCar , bike, motorcycle starts with ca - > TrueCar , bike, motorcycle starts with ba - > False
does not start withOpposite of starts withStringYesCar , bike, motorcycle does not start with ca - > FalseCar , bike, motorcycle does not start with ba - > True
ends withChecks if a string_1 ends with a specified sequence of charactersStringYesCar , bike, motorcycle ends with cle - > TrueCar , bike, motorcycle ends with ba - > False
does not end withOpposite of ends withStringYesCar , bike, motorcycle does not end with cle - > FalseCar , bike, motorcycle does not end with ba - > True
is nullChecks if a specific string is null ( empty) or a number was not initializedStringYes({variable} is null) (Where variable=``) -> TrueNote: To be combined with other conditions using "AND" or "OR" this operator must be surrounded in brackets ()
is not nullOpposite of is nullStringYesCar , bike, motorcycle Is not null -> TrueNote: 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_2NumberYes1>1 -> False
>=Checks if a number_1 is greater or equal to number_2NumberYes1>=1 -> True
<Checks if a number_1 is less than number_2NumberYes1<2 -> True
<=Checks if a number_1 is less or equal to number_2NumberYes1<=2 -> True
==Checks if a number_1 is equal to number_2NumberYes1==2 -> False
<>Checks if a number_1 is not equal to number_2NumberYes1 <> 2 -> True
is trueChecks if a boolean expression is trueBooleanYesFalse is true -> False
is falseChecks if a boolean expression is trueBooleanYesFalse is false -> True
is emptyChecks if an array/list is emptyListYesCar , bike, motorcycle is empty -> False
is not emptyChecks if an array/list is not emptyListYesCar , bike, motorcycle is not empty -> True
inChecks if a number/string is included in a listListYesCar , bike in Car , bike, motorcycle -> True
not inChecks if a number/string is not included in a listListYesCar , bike not in Car , bike, motorcycle -> False

Outcomes

NAMEDESCRIPTION
YesThis status is selected when the evaluated condition is true.
NoThis status is selected when the evaluated condition is false.
UnsuccessfulThis status is selected in the event of the following scenarios:- Expression is missing or doesn't make logical sense

Requirements

  • N/A