IFDATE Conditional branch upon date comparison |
Top Previous Next |
Form 1
Form 2
Form 3
Form 1 of this command is used to compare two specified date strings in the format of mm.dd.yy.
Form 2 of this command is used in conjunction with the most recent to compare the date of the file with a specified date string.
Form 3 of this command is used in conjunction with the most recent GETNEXTFILE to compare the date of the file with a specified date string.
When specifying a date, leading zeroes are required. The following are examples of valid date strings.
Syntactically, no space is permitted to the left of the ‘!’, '=', '<' or '>' symbols, and a space is required to the right of these symbols.
Example of Form 1
The following conditional branch is taken if the current date is past June 30, 2003.
IFDATE> %date "06-30-03" goto later date
Example of Form 2
The following conditional branch is taken if a local file just obtained with the GETNEXTFILE command has a date stamp after June 30, 2003.
GETNEXTFILE "*.txt" IFDATE> "06-30-03" goto good file
Example of Form 3
The following conditional branch is taken if a local file just obtained with the GETNEXTFILE command has a date stamp after June 30, 2003.
GETNEXTFILE "*.txt" IFDATE> "06-30-03" goto_good
Related Command(s): GETNEXTFILE, IFSIZE, IFTIME
|