GSAK (Geocaching Swiss Army Knife)
Contents - Index

If (command)

IF <expression>

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"
  PAUSE Msg="File 12345.GPX not found"

Alpha List         Category List

Copyright 2004-2014 CWE Computer Services  
Privacy Policy Contact