1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<HTML>
<HEAD>
<TITLE>Branching</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<P><A NAME="execbranching"></A>
<font size="+3" color="green"><B>Branching</B></font></P>
<P>
<CODE>GOTO</CODE> can only be used in a script
file. Use a <CODE>GOTO</CODE> to branch to a label.
A label is a character string that ends with a colon,
<CODE>:</CODE>. A label must be on a line by itself,
and it must have <B>no</B> embedded blanks. Do not include the colon with
the label after a <CODE>GOTO</CODE>. </P>
<P><font size="+2" color="green">Example</font></P>
<font color="blue"><PRE>
...
GOTO A_LABEL
...
A_LABEL:
...
</PRE></font>
<P><font size="+2" color="green">Example</font></P>
<font color="blue"><PRE>
...
START:
IF (J>8) THEN GOTO END
...
J=J+1
GOTO START
END:
...
</PRE></font>
<P>
<a href="parameters.htm"><img src="../shadow_left.gif">
<font size="+1" color="olive">Parameters</font></a><br />
<a href="looping.htm"><img src="../shadow_right.gif">
<font size="+1" color="olive">Looping</font></a>
</P>
</BODY>
</HTML>
|