Shell Commands/Lab

From MorphOS Library

Revision as of 12:56, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Lab''' - Defines a label in a batch file No Template Lab is used in script to define a labe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

Lab - Defines a label in a batch file

No Template

Lab is used in script to define a label that is searched for by the Skip command. The label can be of any length, but must be alphanumeric. No symbols are allowed. If the label contains spaces, it must be enclosed in quotation marks.

Example:

If EXISTS ram:test
    SKIP oky
EndIf

echo "File 'ram:test' does not exist."
QUIT

LAB oky
echo "File 'ram:test' exists."