Contents | Index | < Browse | Browse >

 Things you can WAIT for or see if they exist (with IFEXISTS)
 =================================================================
 With the  IFEXISTS  and the  WAIT  commands, you can either wait, or
 see if the following system items exist :

 FILE     - Full path and filename

 PORT     - Public Message Port Name

 SCREEN   - Public Screen Name

 GUI      - Gui4Cli file (True if file is loaded) 

 WINDOW   - Gui4Cli Window (True if the gui's window is open)

 VARIABLE - the name of an internal Gui4Cli variable - Env: variables 
            can be checked by filename with the FILE keyword

 DIRECTORY- name of the directory

 DEVICE   - A Dos Device such as DF0   - WITHOUT the : (Ram NOT Ram:)

 VOLUME   - A Dos Volume               - WITHOUT the :

 ASSIGN   - An assignment              - WITHOUT the :

 DOS      - A Device OR a Volume OR an Assignment (i.e. any of the
            above 3)

 Gui4Cli Files and Windows are referred to by their file names
 only and not the full path of the file.

 Note : If you want to use RX to launch ARexx programs, you may
 want to check first that RexxMast has been started up.
 RexxMast opens 2 ports REXX and AREXX, so you can do this:

 IfExists PORT REXX 
    ; Ok - RexxMast is running 
 else 
    cli 'RexxMast'
 endif