IfDirExists


 

IfDirExists>directory_name[,label_name[,false_label_name]]

 statements  

[ [Else

 else statements]

Endif ]

 

If directory_name exists the first statements are executed.  Otherwise the else statements are executed.

 

When label names are provided execution jumps to the specified label if the directory specified in directory_name exists. 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 when the subroutine has completed.  If label names are specified Else and Endif are ignored and are unnecessary.

 

 

Abbreviation : IFD

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

 

Example

 

IfDirExists>c:\myfolder\temp

  MessageModal>temp folder exists - good

Else

  CreateDir>c:\myfolder\temp

Endif