Re: While I'm using the 'Guest' post
- Posted by "Igor Kachan" <kinz at peterlink.ru> Jan 24, 2004
- 403 views
Hi Guest, ---------- > I've been using a lot of loops lately, and I've > noticed I need something. I'd > like to see a 'next' statement in Euphoria. > I'd like to be able to do this: > > for i = 1 to 10 do > > if i = 3 then -- i don't like 3 :) > next -- go to next step > end if > > end for EU has efficient ways to do the same and better things just now: 1. sequence I I = {1,2,4,6,7,9,10} for i=1 to length(I) do -- I does not have 3,5,8 -- code to do with I[i] end for -- more fast loop, without if...end if -------- 2. for i = 1 to 10 do if i != 3 then -- i don't want 3 too -- what to do end if end for -- as fast as 'next', with if...end if This is EU -- just now! Regards, Igor Kachan kinz at peterlink.ru