Difference between revisions of "Shell Commands/Lab"

From MorphOS Library

< Shell Commands

(Created page with "'''Lab''' - Defines a label in a batch file No Template Lab is used in script to define a labe...")
 
(No difference)

Latest revision as of 10:56, 3 March 2015

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