Please enable JavaScript to view this site.

A-Shell Reference

IF <expr>

   <statements to execute if true>

ELSE

   <statements to execute if false>

ENDIF

ELSE allows for the flow of control within a CMD or DO file based on various conditions that can be tested. It takes no arguments, and its usage should be clear from the example above. See Command Files for more information.