<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=DO</id>
	<title>DO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=DO"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=DO&amp;action=history"/>
	<updated>2026-04-11T14:20:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=DO&amp;diff=761&amp;oldid=prev</id>
		<title>ConvertBot: implements a do loop within a macro</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=DO&amp;diff=761&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:48Z</updated>

		<summary type="html">&lt;p&gt;implements a do loop within a macro&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;implements a do loop within a macro&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;label&amp;gt;  Result label to hold count (optional)&lt;br /&gt;
&amp;lt;start&amp;gt;  Loop start value&lt;br /&gt;
&amp;lt;end&amp;gt;    Loop end value (inclusive)&lt;br /&gt;
&amp;lt;inc&amp;gt;    Loop increment value (fractional is OK)&lt;br /&gt;
&lt;br /&gt;
A DO-ENDDO combination is used in a macro to loop through a sequence of &lt;br /&gt;
commands incrementing the &amp;lt;start&amp;gt; value after each pass until the &amp;lt;end&amp;gt; value &lt;br /&gt;
is reached.  If &amp;lt;label&amp;gt; is specified, the results parameter will contain the &lt;br /&gt;
current value.  When the loop is finished, &amp;lt;label&amp;gt; will be less than or equal &lt;br /&gt;
to &amp;lt;end&amp;gt;.  If &amp;lt;start&amp;gt; is greater than &amp;lt;end&amp;gt;, the loop will not execute but &lt;br /&gt;
&amp;lt;label&amp;gt; will still be written with the &amp;lt;start&amp;gt; value.&lt;br /&gt;
&lt;br /&gt;
There are no restrictions nesting DO loops.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Initialize the results MYRES_1 ... MYRES_7.&lt;br /&gt;
&lt;br /&gt;
   DO count 1 7 1&lt;br /&gt;
     result myres_^count 0&lt;br /&gt;
   ENDDO&lt;br /&gt;
&lt;br /&gt;
SEE ALSO:  LOOP, ENDDO, BREAK, CONTINUE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>