From: Michael Linfield Date: 2008-05-15T03:04:03+09:00 Subject: Re: anding statements. Kyle Schmitt wrote: > 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 Alright I'm going to attempt to explain this without confusing you or myself. Using '&' is basically comparing. It returns a value if not false. 1 & 2 #=> 0 2 & 2 #=> 2 Using '&&' is self evident. "hey" && false #=> false "hey" && 10 #=> 10 true && false #=> false false && true #=> false Regards, - Mac -- Posted via http://www.ruby-forum.com/.