<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ABasic%3ARepeat</id>
	<title>83Plus:Basic:Repeat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ABasic%3ARepeat"/>
	<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Basic:Repeat&amp;action=history"/>
	<updated>2026-11-20T18:07:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:Basic:Repeat&amp;diff=5692&amp;oldid=prev</id>
		<title>Catsleepsunderoakleaves at 19:25, 23 February 2007</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Basic:Repeat&amp;diff=5692&amp;oldid=prev"/>
		<updated>2007-02-23T19:25:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:25, 23 February 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:83Plus:Basic:Conditionals|Repeat]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:83Plus:Basic:Conditionals|Repeat]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;Repeat&#039;&#039;&#039; loop is a program-flow statement that repeats the execution a section of code at least once, based on the value of a condition. The Repeat loop is comprised of a &amp;lt;code&amp;gt;Repeat(&amp;lt;/code&amp;gt; token, a conditional statement, and a block of code terminated by an &amp;lt;code&amp;gt;End&amp;lt;/code&amp;gt; token. It is similar to, but fundamentally different than, the [[While]] loop.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;Repeat&#039;&#039;&#039; loop is a program-flow statement that repeats the execution a section of code at least once, based on the value of a condition. The Repeat loop is comprised of a &amp;lt;code&amp;gt;Repeat(&amp;lt;/code&amp;gt; token, a conditional statement, and a block of code terminated by an &amp;lt;code&amp;gt;End&amp;lt;/code&amp;gt; token. It is similar to, but fundamentally different than, the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;83Plus:Basic:While|&lt;/ins&gt;While]] loop.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Synopsis ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Synopsis ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Catsleepsunderoakleaves</name></author>
	</entry>
	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:Basic:Repeat&amp;diff=5691&amp;oldid=prev</id>
		<title>Catsleepsunderoakleaves at 19:24, 23 February 2007</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Basic:Repeat&amp;diff=5691&amp;oldid=prev"/>
		<updated>2007-02-23T19:24:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:83Plus:Basic:Conditionals|Repeat]]&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Repeat&amp;#039;&amp;#039;&amp;#039; loop is a program-flow statement that repeats the execution a section of code at least once, based on the value of a condition. The Repeat loop is comprised of a &amp;lt;code&amp;gt;Repeat(&amp;lt;/code&amp;gt; token, a conditional statement, and a block of code terminated by an &amp;lt;code&amp;gt;End&amp;lt;/code&amp;gt; token. It is similar to, but fundamentally different than, the [[While]] loop.&lt;br /&gt;
&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Token Size:&amp;#039;&amp;#039;&amp;#039; 1 byte&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Syntax:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
:Repeat &amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;condition&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
:  &amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;code to be executed&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
:End&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Synatax ==&lt;br /&gt;
The Repeat loop consists of at least three lines of code; the initialization and condition of the loop:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
:Repeat(&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039; condition &amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the body of the loop, possibly consisting of several lines, and a terminating &amp;lt;code&amp;gt;End&amp;lt;/code&amp;gt; statement.&lt;br /&gt;
&lt;br /&gt;
This loop pushes its return condition onto the stack, so it should ideally exclude &amp;lt;code&amp;gt;Goto&amp;lt;/code&amp;gt; statements, or a memory error is possible.&lt;br /&gt;
&lt;br /&gt;
== Execution ==&lt;br /&gt;
When the &amp;lt;code&amp;gt;Repeat(&amp;lt;/code&amp;gt; command is encountered, execution of the code block begins. At the end of the loop, the condition is evaluated. If it is false, the loop repeats; if it is true, the loop exits. Becuase continuation of the loop is dependant on the &amp;#039;&amp;#039;opposite&amp;#039;&amp;#039; boolean value of that which controls the While loop, the repeat loop is often used incorrectly.&lt;br /&gt;
&lt;br /&gt;
== Use ==&lt;br /&gt;
The Repeat loop can be generally used as an alternative to thw While loop. In general, a repeat should be used for a loop that should always run at least once. The exact choice is dependant on the needs of the programmer.&lt;br /&gt;
&lt;br /&gt;
The following are essentially identical:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
:Repeat(Z=105)&lt;br /&gt;
:  &amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;...&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
:getKey\-&amp;gt;\Z&lt;br /&gt;
:End&lt;br /&gt;
...comapre to...&lt;br /&gt;
:0\-&amp;gt;\Z&lt;br /&gt;
:While(Z≠105)&lt;br /&gt;
:  &amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;...&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
:getKey\-&amp;gt;\Z&lt;br /&gt;
:End&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Repeat loop is smaller than the While by three bytes. A similar program using the &amp;lt;code&amp;gt;Ans&amp;lt;/code&amp;gt; variable makes the While loop larger by one byte. Either way, the Repeat loop is generally smaller.&lt;/div&gt;</summary>
		<author><name>Catsleepsunderoakleaves</name></author>
	</entry>
</feed>