Compare Variables
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.
Set the first variable
Enter the first value.
Set the second variable
Enter the second value.
Exit point |
Taken |
Less than |
When the value in the 'first variable' field is less than the value in the 'second variable' field. |
Greater than |
When the value in the 'first variable' field is greater than the value in the 'second variable' field. |
Equal to |
When the value in both fields are equal. |
Compared strings must be an identical (including uppercase/lowercase characters) to satisfy the 'Equal to' condition. If necessary, use the Convert Case action cell to change a string to upper or lowercase.
In a date comparison, the more recent date is deemed to have the higher value. Dates must not be before 01/01/1970.