Hello --

On Wed, 14 Nov 2001, Niko Schwarz wrote:

> Hi there,
> is there a way to exit a block before time?
> like:
>
> field.each { |el|
>         if(el.alsacian?)
>                 break #no, dont want anymore
>         else
>                 puts el
>         end
> }
>
> is there? (note: i want to exit it just for one el, of course)

Doesn't break do what you want?  Or am I confused about what
it does?


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav