From: Robert Klemme Date: 2010-10-21T03:25:12+09:00 Subject: Re: Long conditional statements On 20.10.2010 16:34, botp wrote: > On Wed, Oct 20, 2010 at 10:26 PM, Courtland Allen > wrote: >> if a or b or c or d or e or f > > ri any? Problem is that if a, b, c, d, e and f are expressions you would have to evaluate them beforehand thus loosing short circuit evaluation: if [a,b,c,d,e,f].any? {|x| x} ... end I don't even find that more aesthetically pleasing. I'd probably rather refactor, e.g. if complex_condition(x,y) do_something end Courtland, can you demonstrate a real example of your complex conditions? Maybe there are other ways to transform them and make them less complex. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/