From: Kyle Schmitt Date: 2008-05-15T02:28:23+09:00 Subject: Re: anding statements. Mac, If your two arguments were methods however, and the first one succeeded, wouldn't you expect it to execute the second? On Wed, May 14, 2008 at 12:17 PM, Michael Linfield wrote: > Consider the following: > > x = 'word' > z = nil > > test = x && z # test == nil > test = x and z # test == 'word' > test = (x and z) # test == nil > > Regards, > > - Mac > -- > Posted via http://www.ruby-forum.com/. > >