While
The While action allows various items, such as web pages, to be iterated while a condition remains true, stopping once the condition is false and continuing with the rest of the User Path. 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 a While 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).
While-type logical actions may be shared among several User Paths. See Shared Containers.
Home