[REBOL] Re: Iterations question
From: SunandaDH:aol at: 17-Aug-2005 3:24
Albert:> Is there a way to force the next iteration within loops?One way is to wrap a loop 1 around the loop and then use break to exit the loop 1. foreach item [1 2 3 4 5 6 7 8 9] [ loop 1 [ print item if item // 2 = 0 [break] print [" " item "is odd"] ] ] Though in many cases refactoring the code may lead to a more elegant structure. Sunanda.