1. Re: next (was: case and foreach)

Greg Haberek wrote:

<snip>

> What I really need is 'next' because I'm sick and tired of putting a
> bunch of code in an 'if' statement.

Me too!

> }}}
<eucode>
> for x = 1 to 50 do
>
>     if some_condition then
>         -- do a lot of code here
>     end if
>
> end for
>
> -- OR --
>
> for x = 1 to 50 do
>
>     if not some_condition then
>         -- skip to next x
>         next
>     end if
>
>     -- do a lot of code here (1-level down)
>
> end for
> </eucode>
{{{


<snip>

The wish for this feature has been expressed here soooo many times ...

Regards,
   Juergen

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu