Question: Setting up a loop that resets

<p>Hey,</p>
<p> </p>
<p>How do I set up a loop that resets if a certain condition is met? </p>
<p>I have set up a loop that pulls and runs an external process. However, if certain conditions are met, I wish the loop to reset from the beginning and take the last output from the process as the new input.</p>
<p> </p>
<p>Example:</p>
<p>for i from 1 to 10 do</p>
<p>     tester:=baseset[i]:</p>
<p>     tester:=process(tester)[1]:</p>
<p>     check:=process(tester)[2]:</p>
<p>masscollector:=[op(masscollector),tester]:</p>
<p>if check:=1 then "reset i" fi:</p>
<p>od:</p>
<p> </p>
<p>I have tried this loop by resetting "i:=1". However, I believe that the system is setting the variable "i" to 1 and continuing the loop instead of resetting it (restarting at i=1).</p>
<p> </p>
<p>Please advise,</p>
<p> </p>
<p>Rodney</p>
Please Wait...