Difference between revisions of "Goto"

From Wiki
Jump to: navigation, search
(No difference)

Revision as of 22:17, 13 August 2005

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