Rodfer

8 Reputation

2 Badges

12 years, 345 days

MaplePrimes Activity


These are questions asked by Rodfer

<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>
Page 1 of 1