Compares two values and branches according to whether the first value is less than, equal to, or greater than the second value. |
This is useful for validating caller input. For example, comparing the digits of a user-entered PIN with the actual PIN and then branching accordingly.
One of the following two fields must be a variable. The other can be a literal value or a variable.
Note: a date value must be provided as a variable and not as a literal.
Option |
Description |
First variable |
Enter the first value. |
Second variable |
Enter the second value. |
String comparison is case-sensitive. If necessary, use the Convert Case action cell to change a string to upper or lowercase.
A date variable can only be compared with another date variable. In a date comparison, the more recent date is deemed to have the higher value. Dates must not be before 01/01/1970.
Option |
Description |
Less Than |
This is taken when the value in the 'first variable' field is less than the value in the 'second variable' field. |
Greater Than |
This is taken when the value in the 'first variable' field is greater than the value in the 'second variable' field. |
Equal To |
This is taken when the value in both fields are equal. |
Error |
This is taken if an internal error occurred. |