If ... Then ... Else
The If ... Then ... Else action is used to execute conditional actions. When creating a conditional action, two Containers are created, Then and Else. If the condition is true, the actions in the Then Container are executed; If false, the actions in the Else Container are executed. A condition is composed of two operands and an operator. The operators are:
- Equals - true if the 2 operands have the same value
- Doesn't equal - true if the 2 operands do not have the same value
- Contains - true if operand1 contains operand2
- Doesn't contain - true if operand1 does not contain operand2
- Starts with - true if operand1 begins with operand2, including if the 2 operands are equal.
- Doesn't start with - true if operand1 does not begin with operand2.
- Ends with - true if operand1 ends with operand2, including if the 2 operands are equal.
- Doesn't end with - true if operand1 does not end with operand2.
- Matches regexp - true if operand1 verifies the regular expression of operand2.
- Doesn't match regexp - true if operand1 does not verify the regular expression of operand2.
- Greater than -true if operand1 is greater than operand2.
- Greater than or equal to - true if operand1 is greater than or equal to operand2.
- Less than - true if operand1 is less than operand2.
- Less than or equal to - true if operand1 is less than or equal to operand2.
- Exists - true if operand1 corresponds to a name of a variable whose value is not nil. Operand2 cannot be defined.
- Doesn't exist - true if operand1 does not correspond to a variable name or if operand1 corresponds to a variable name with a nil value. Operand2 cannot be defined.
Each operand may be a variable ${VariableName} or a static string. In the case of the Exists operator, operand1 can only be a VariableName variable name.
Several conditions may be used within an If ... Then ... Else action. To add a condition, simply click on the + button below the table of conditions. You must then specify whether the action is executed if all the conditions are true (Resolve all the following items), or if at least one of them is true (Resolve one of the following items).
Home