Use this command to execute a group of macro commands only if a certain condition exists. The expression used must return a Boolean true or false value. You must end the group of statements being executed with the ENDIF command. To execute other commands for the false condition use the ELSE command. For example:
IF FileExists("c:\mail\12345.GPX")
DATABASE Name="Default"
LOAD Settings="12345 settings" File="c:\mail\12345.GPX"
ELSE
PAUSE Msg="File 12345.GPX not found"
ENDIF