From: dblack@... Date: 2007-07-27T07:24:47+09:00 Subject: Re: n00b if condition quest Hi -- On Fri, 27 Jul 2007, Brett Boge wrote: > I'm sure theres a way, so how does one do: > > if (a = b or a = c or a = d or a = f) > > in a shorter, easier to view > > if (a = (b c d or f)) kind of way? You mean == rather than = , but in any case, try this: if [b,c,d,f].include?(a) David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)