
I don't know who wrote this and therefore can't credit him, but it can be
incredibly useful in !Run files etc.

Harriet Bazley 30th Janury 1998


IfThereIs
=========

Detects presence of files or directories.

Syntax
------
  *IfThereIs [-Not] [ -File | -Dir | -App | -Image ] [-x] <object>
             <yes command> [<no command>]
           | <command> <yes param> <no param>

  1) *IfThereIs [options] <object> <command>
        <command> executed if <object> found
       
  2) *IfThereIs [options] <object> <command_1> <command_2>
        <command_1> executed if <object> found
        <command_2> executed if not found
       
  3) *IfThereIs [options] <object> <command> <param_1> <param_2>
        <command> <param_1> executed if <object> found
        <command> <param_2> executed if not found

-x makes IfThereIs take the no option if any OS errors reported during the
testing.

Examples
--------
  *IfThereIs -App Apps:!ArtWorks "Echo ArtWorks installed"
  *IfThereIs <Obey$Dir>.!Run "<Obey$Dir>.!Run" "Echo No !Run file"
  *IfThereIs Resources:$.Apps.!Help "Set Help$Present" yes no
  *IfThereIs -Image ADFS::0.$ "Echo Dos Disc: " yes no
