<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fgoto</id>
		<title>IB Statements/goto - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fgoto"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/goto&amp;action=history"/>
		<updated>2026-05-04T21:31:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/goto&amp;diff=357&amp;oldid=prev</id>
		<title>Badge: New page: '''GOTO statement'''   '''Syntax:'''  GOTO statement-label  GO TO statement-label  GO statement-label    '''Discussion:'''  The GOTO statement transfers program control to the specified st...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/goto&amp;diff=357&amp;oldid=prev"/>
				<updated>2009-05-20T11:00:42Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;GOTO statement&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  GOTO statement-label  GO TO statement-label  GO statement-label    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The GOTO statement transfers program control to the specified st...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''GOTO statement''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  GOTO statement-label&lt;br /&gt;
&lt;br /&gt;
GO TO statement-label&lt;br /&gt;
&lt;br /&gt;
GO statement-label&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
'''Discussion:'''  The GOTO statement transfers program control to the specified statement-label. &lt;br /&gt;
The Internet Basic compiler recognizes three variations of this statement, including GOTO (two words, no space), GO TO (two words, one space), or GO (one word only). &lt;br /&gt;
&lt;br /&gt;
'''Note:''' With the GOTO statement, there is no built-in provision for returning to the point where the GOTO statement was issued (this provision exists with the GOSUB statement, as well as other subroutine generating statements). &lt;br /&gt;
&lt;br /&gt;
Also see ON/GOTO. &lt;br /&gt;
 &lt;br /&gt;
'''Example 1:'''  TOP: READ (1,1000) EXCP=9000&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
GOTO TOP&lt;br /&gt;
&lt;br /&gt;
In the above example, the GOTO statement is used to create a program loop. The statement labelled TOP represents the start of the loop. Other program statements are presumed to follow. At the end of these statements, the GOTO statement transfers program control back to TOP, thus creating a loop.  &lt;br /&gt;
&lt;br /&gt;
'''Example 2:'''  IF ANSWER$ = &amp;quot;N&amp;quot; THEN GOTO 5000&lt;br /&gt;
&lt;br /&gt;
In this example, the GOTO statement is used to transfer program control to statement label 5000 only if the string variable ANSWER$ is equal to &amp;quot;N&amp;quot; (a logical condition being tested by the IF/THEN statement).&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>