From: Ian Whitlock Date: 2007-07-28T06:58:11+09:00 Subject: Re: n00b if condition quest 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 e=f = 99 a1 = [b,c,d,e,f].compact.first a2=b or a2=c or a2=d or a2=e or a2=f puts a1, a2 a1 is false and a2 is 99 Ian -- Posted via http://www.ruby-forum.com/.