From: Rick DeNatale Date: 2008-05-03T03:14:09+09:00 Subject: Re: Ruby 1.9 wishlist On Fri, May 2, 2008 at 1:57 PM, Suraj Kurapati wrote: > In fact, an if statement in Ruby is nothing more than shell-style > booleans: > > if condition then main_stuff else other_stuff end > > condition and main_stuff or other_stuff > > condition && main_stuff || other_stuff > Not quite val = if true false else true end val # => false val = true && false || true val # => true -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/