<?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=LOOP</id>
	<title>LOOP - 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=LOOP"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=LOOP&amp;action=history"/>
	<updated>2026-04-19T13:26:28Z</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=LOOP&amp;diff=831&amp;oldid=prev</id>
		<title>ConvertBot: implements a basic counting loop within a macro</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=LOOP&amp;diff=831&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:11Z</updated>

		<summary type="html">&lt;p&gt;implements a basic counting 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 basic counting loop within a macro&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;count&amp;gt;  Number of times to loop&lt;br /&gt;
&amp;lt;label&amp;gt;	 Result label to hold count (optional)&lt;br /&gt;
&lt;br /&gt;
The LOOP loop is a simplified version of the DO loop that is provided for&lt;br /&gt;
compatibility with X-Midas.&lt;br /&gt;
&lt;br /&gt;
A LOOP-ENDLOOP combination is used in a macro to loop through a sequence of &lt;br /&gt;
commands &amp;lt;count&amp;gt; number of times. If specified, the results parameter &amp;lt;label&amp;gt;&lt;br /&gt;
will contain the current loop count.  When the loop is finished, &amp;lt;label&amp;gt; will&lt;br /&gt;
be equal to &amp;lt;count&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;label&amp;gt; starts at 1 and continues up through &amp;lt;count&amp;gt; inclusively. Thus for&lt;br /&gt;
&amp;lt;count&amp;gt;=3, &amp;lt;label&amp;gt; becomes 1, 2, 3, and then the loop stops.&lt;br /&gt;
&lt;br /&gt;
There are no restrictions nesting LOOP 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;
   LOOP 7 i&lt;br /&gt;
     result myres_^i 0&lt;br /&gt;
   ENDDO&lt;br /&gt;
&lt;br /&gt;
SEE ALSO:  DO, ENDLOOP, 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>