From: Dominik Bathon Date: 2005-12-06T12:22:34+09:00 Subject: Re: increasing counter whithin loop? On Mon, 05 Dec 2005 15:13:46 +0100, Kroeger, Simon (ext) wrote: > (no, I don't think this is realy nice) Here is another (not really nice) way to do it, using the flip-flop operator: >> %w( a b c d b e ).each { |el| nil if (puts(el) || el == "b")...true } a b d b Dominik