From: Mike Cargal Date: 2008-06-13T07:08:19+09:00 Subject: Re: ||= (need to finish replies before clicking "send") this really is equivalent to a = a || b, just like a += 1 is equivalent to a = a + 1 (same for -=, etc.) that's why you get b if a was false On Jun 12, 2008, at 1:57 AM, Damjan Rems wrote: > Justin To wrote: >> what does ||= do? > > In other languages you would code this something like: > > if a == nil > a = b > end > > > by > TheR > -- > Posted via http://www.ruby-forum.com/. >