From: Robert Dober Date: 2007-07-28T08:47:39+09:00 Subject: Re: n00b if condition quest On 7/27/07, Ian Whitlock wrote: > Robert Dober wrote: > > > You are right for sure that OP meant ==, but let us answer the > > original question too ;) > > > > a = [b,c,d,e,f].compact.first > > Not quite. > > b=c=d=false indeed well,spotted, same trap than in x ||= 42 > Ian > -- > Posted via http://www.ruby-forum.com/. > > -- [...] as simple as possible, but no simpler. -- Attributed to Albert Einstein