Shell Commands/Lab

From MorphOS Library

< 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."