Macro Scheduler 15

IfFileChanged

IfFileChanged>filename,range[,label_name[,false_label_name]]

 statements  

[ [Else

 else statements]

Endif ]

 

If the given file's date is in the range of days specified the first statements are executed, otherwise the else statements are executed.  Alternatively, instead of Else/Endif specify label names.

 

When label names are specified execution jumps to the specified label if the given file's date is in the range of days specified. If a second false label is specified, execution will jump to that label if the expression resolves false.  Subroutine names can also be specified.  When specifying a subroutine name execution will jump to that subroutine and return to the line after the If statement when the subroutine has completed.

 

 

Abbreviation : IFC

See also: Label, Goto, IfWindowOpen, IfFileExists, If, Subroutines

 

Example

 

To see if test.txt is less than 30 days old :

 

IfFileChanged>test.txt,<30

  MessageModal>test.txt is less than 30 days old

Endif