From: Todd Benson Date: 2008-04-05T04:51:54+09:00 Subject: Re: The ||= assignment operator On Fri, Apr 4, 2008 at 2:41 PM, Belorion wrote: > Thanks all, that clears up my understanding. I hadn't thought of it as x = > x || "ruby" (even thoughI knew that x += 1 is the same as x = x + 1) and > that in that expanded case, x evaluates, logistically, to false if nil or > false. For conditional expressions. Here's something that may catch you off guard... irb(main):001:0> nil || false => false irb(main):001:0> false || nil => nil Todd