<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Setting up a loop that resets</title>
    <link>http://www.mapleprimes.com/questions/35621-Setting-Up-A-Loop-That-Resets</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sun, 14 Jun 2026 05:06:24 GMT</lastBuildDate>
    <pubDate>Sun, 14 Jun 2026 05:06:24 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Setting up a loop that resets</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Setting up a loop that resets</title>
      <link>http://www.mapleprimes.com/questions/35621-Setting-Up-A-Loop-That-Resets</link>
    </image>
    <item>
      <title>while loop and next</title>
      <link>http://www.mapleprimes.com/questions/35621-Setting-Up-A-Loop-That-Resets?ref=Feed:MaplePrimes:Setting up a loop that resets:Comments#answer44491</link>
      <itunes:summary>Make it a while loop and explicitly update the loop counter at the end of the loop.  Then use the next keyword to restart the loop.</itunes:summary>
      <description>Make it a while loop and explicitly update the loop counter at the end of the loop.  Then use the next keyword to restart the loop.</description>
      <guid>44491</guid>
      <pubDate>Sun, 28 Feb 2010 12:00:35 Z</pubDate>
      <itunes:author>roman_pearce</itunes:author>
      <author>roman_pearce</author>
    </item>
    <item>
      <title>for index</title>
      <link>http://www.mapleprimes.com/questions/35621-Setting-Up-A-Loop-That-Resets?ref=Feed:MaplePrimes:Setting up a loop that resets:Comments#answer44492</link>
      <itunes:summary>&lt;p&gt;You can reassign the index variable in the loop, however, to get it to restart from the beginning you have assign it the initial value minus the step value because the index is incremented by each time at the top of the loop, except for the first time. I generally don't reassign a loop counter and instead would follow Roman's advice to use a while loop.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You can reassign the index variable in the loop, however, to get it to restart from the beginning you have assign it the initial value minus the step value because the index is incremented by each time at the top of the loop, except for the first time. I generally don't reassign a loop counter and instead would follow Roman's advice to use a while loop.&lt;/p&gt;</description>
      <guid>44492</guid>
      <pubDate>Sun, 28 Feb 2010 12:32:28 Z</pubDate>
      <itunes:author>Joe
 Riel
</itunes:author>
      <author>Joe
 Riel
</author>
    </item>
  </channel>
</rss>