Runs a command but only if a given condition is satisfied.
if [not] errorlevel number command [options]
if [not] string1==string2 command [options]
if [not] exist [d:][path]filename command [options]
With this, the command will be run if the condition is false.
(Without this, the command will be run if the condition is true.)
This command that will be run if the condition is satisfied.
These will be passed to the command if it is run.
DOS Programs return a number when they exit, which sometimes contains
information on whether the program was successful.
If the last program to exit returned the given number, then the condition
If the two strings of characters are equal, then the condition is true.
If the given file is there, then the condition is true.
Copyright © 2003 Rob Platt
This file forms part of The FreeDOS HTML Help Documentation, and is covered
under its terms: see index.htm