From: Phil Carter Date: 2012-02-10T20:38:52+09:00 Subject: How does && work in ruby Hi there, Can someone explain to me how the && operator works (in simple terms - I'm a Ruby newbie! (That even rhymes! ;-) More specifically, why does this piece of code assign a user object (or nil) to @current_user, not true or false? @current_user = current_user_session && current_user_session.user Thanks, Phil -- Posted via http://www.ruby-forum.com/.