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/.