Goto

From Wiki
Revision as of 23:17, 13 August 2005 by Snicker7 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

goto

Flow Control

Synopsis

goto {label name}

Description

The goto command moves the execution to another part of the script. The destination point is given by a label.

Labels

A label specifies a point in the code where you can goto to.

NOTE: a label in the code must be followed by a colon, where as gotoing to the label does not require a following colon.

Example

loop:
if %donotloop
	goto exit
goto loop

exit:

See Also


Main_Page Documentation

Flow Control