From: Kedar Mhaswade Date: 2009-01-10T07:57:58+09:00 Subject: Re: value of an expression? > It is the equivalent of: > > if (1 + 1 != 2) > s = "surprising" > end > > So s = "surprising" is never evaluated, and s continues to equal "test". Ah ok, thanks. However, I was thinking if it should be nil, not "surprising", because of the following experience with irb: >> "surprising" if (1+1 !=2) => nil which gives an impression that the value of this entire expression is nil. -Kedar -- Posted via http://www.ruby-forum.com/.