From: Kyle Date: 2009-11-16T02:16:53+09:00 Subject: Re: what's || --Boundary-00=_AeDAL6pmQ+Fq/F5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sorry I hit send on the previous message before I finished -- plus I suppose "lazy" evaluation was a bad term for it. Basically, the right side of the operator isn't evaluated if the left side expression is true. && is simillar in that the right hand side isn't evaluated if the left side is false. On Sunday November 15 2009 7:59:31 am duxieweb wrote: > sorry just was learning ruby so have some low level questions, :) > > in this statement: > > 1.upto(10) do |c| print c," " end > > what's the usage of "| ... |" in ruby? can't easily understand. > > Thanks. --Boundary-00=_AeDAL6pmQ+Fq/F5--