From: Niko Schwarz Date: 2001-11-14T22:33:21+09:00 Subject: [ruby-talk:25171] Re: exiting blox Stefan Schmiedl wrote: > you could try throw and catch > as in > > catch(:alsacian) { > field.each { |el| > throw(:alsacian) if el.alsacian? > puts el > } > } =) Thanks for the idea, but im afraid that wont do what i wont: i have now code with 6 nested levels, and i want to reduce those levels, cos the code is for a competition, so its got to look good (and even if it was just my code: i cant stand code with as many levels as that). Well, your idea would work of course, but that would mean the same as using "unless" which im doing now... regards, nick -- A lady with one of her ears applied To an open keyhole heard, inside, Two female gossips in converse free -- The subject engaging them was she. "I think", said one, "and my husband thinks That she's a prying, inquisitive minx!" As soon as no more of it she could hear The lady, indignant, removed her ear. "I will not stay," she said with a pout, "To hear my character lied about!" -- Gopete Sherany