The string comparisons performed in IF commands are not case sensitive. The available tests are:
Exists
: true if the variable exists and the variable has a non-empty valueDoes Not Exist
: true if the variable does not exist or the variable has an empty valueIs Equal To
: true if value of the variable equals the test value.Is Not Equal To
: true if value of the variable does not equal the test value.Is Greater Than
: true if value of the variable is greater than the test value.Is Greater Than or Equal To
: true if value of the variable is greater than or equal to the test value.Is Less Than
: true if value of the variable is less than the test value.Is Less Than or Equal To
: true if value of the variable is less than or equal to the test value.Contains
: true if the test value is a sub string of the variable (variable must be a string).Does Not Contain
: true if the test value is not a sub string of the variable (variable must be a string).Begins With
: true if the variable value begins with the test value.Ends With
: true if the variable value ends with the test value.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.