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
<globyy3000 / hotmail.com> 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/.
>
>