Next Topic

Previous Topic

Book Contents

String Comparisons

The string comparisons performed in IF commands are not case sensitive. The available tests are:

For the tests Is Equal To, Is Not Equal To, Is Greater Than, Is Greater Than or Equal To, Is Less Than, and Is Less Than or Equal To the variables compared may be a string, a number, a date in the format of yyyy/mm/dd or yyyy/mm/dd hh:mm or yyyy/mm/dd hh:mm:ss, or a version number containing dots or commas such as 1.2.3 or 4,5,6,7. Values in variables are stored as strings, so compared numbers must be of equal string length. If a date format is specified, it may be offset using + dd:hh:mm:ss or - dd:hh:mm:ss. Only dd days are required; hh hours, mm minutes, and ss seconds may be omitted and are assumed to be zero when absent.