<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<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-04-05T22:57:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</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 class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; 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;&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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 '''Repeat''' 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='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 '''Repeat''' 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 class=&quot;diffchange diffchange-inline&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Synopsis ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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 '''Repeat''' 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;
'''Token Size:''' 1 byte&lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
:Repeat &amp;lt;/nowiki&amp;gt;''condition''&amp;lt;nowiki&amp;gt;&lt;br /&gt;
:  &amp;lt;/nowiki&amp;gt;''code to be executed''&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;'' condition ''&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 ''opposite'' 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;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;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>