From: Courtland Allen Date: 2010-10-21T03:37:45+09:00 Subject: Re: Long conditional statements --000e0cd2de3e7de26a049310b44d Content-Type: text/plain; charset=ISO-8859-1 On Wed, Oct 20, 2010 at 11:25 AM, Robert Klemme wrote: > > 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/ > > It happens in a variety of different ways in my code, so the more techniques you guys list, the better (I hadn't known about any?). But here's one example anyway: if somehash[:key1].blank? or somehash[:key2].blank? > or somehash[:key2].blank? or somehash[:key2].blank? doSomething() end --000e0cd2de3e7de26a049310b44d--