Login  Register

Re: "break" equivalent in Macro language.

Posted by ved sharma on Dec 07, 2010; 2:07pm
URL: http://imagej.273.s1.nabble.com/break-equivalent-in-Macro-language-tp3686262p3686267.html

Hi Michael,

Thanks for your reply but I don't understand how you "set end_reached". How would you do that for this example code, so that the last iteration of print(b++) is not executed.

a = 0;
b = 0;
for (i=0;i<10;i++) {
   print(a++);
   if (a==3) i = 1e99;
   print(b++);
}

Ved