<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AReturn</id>
	<title>TI-BASIC:Return - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AReturn"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Return&amp;action=history"/>
	<updated>2026-04-29T19:25:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Return&amp;diff=911&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Return&amp;diff=911&amp;oldid=prev"/>
		<updated>2016-02-24T18:24:58Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=RETURN_ANIMATED.GIF&lt;br /&gt;
|summary=Stops the program and returns the user to the home screen. If the program is a subprogram, however, it just stops the subprogram and returns program execution to the parent program.&lt;br /&gt;
|syntax=Return&lt;br /&gt;
|location=Press:&lt;br /&gt;
# PRGM to enter the PRGM menu&lt;br /&gt;
# ALPHA SIN to choose Return, or use arrows&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
When the Return command is used in a program it exits the program (terminating the program execution) and returns the user to the home screen. If it is encountered within [[TI-BASIC:While|loops]], the loops will be stopped.&lt;br /&gt;
&lt;br /&gt;
There is some distinction when using Return with [[TI-BASIC:Subprograms|Subprograms]]: the Return command will stop the program execution of the subprogram, and program execution will go back to the calling program, continuing right after the subprogram call. If this functionality is not desired, then you should use the [[TI-BASIC:Stop|Stop]] command instead. Generally, though, you should use Return instead of Stop.&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Input &amp;quot;Guess:&amp;quot;,A&lt;br /&gt;
 :Stop&lt;br /&gt;
 Replace Stop with Return&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Input &amp;quot;Guess:&amp;quot;,A&lt;br /&gt;
 :Return&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
You don&amp;#039;t have to put a Return command at the end of a program or subprogram if you can organize the program so that it just naturally quits. When the calculator reaches the end of a program, it will automatically stop executing as if it had encountered a Return command (the Return is implied).&lt;br /&gt;
&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Input &amp;quot;Guess:&amp;quot;,A&lt;br /&gt;
 :Return&lt;br /&gt;
 Remove the Return&lt;br /&gt;
 :ClrHome&lt;br /&gt;
 :Input &amp;quot;Guess:&amp;quot;,A&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#invalid|ERR:INVALID]]&amp;#039;&amp;#039;&amp;#039; occurs if this statement is used outside a program.&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Prgm|Prgm]]&lt;br /&gt;
* [[TI-BASIC:Stop|Stop]]&lt;br /&gt;
&lt;br /&gt;
= See Also =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Subprograms|Subprograms]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>