From: Adam Kittelson Date: 2009-01-10T07:43:07+09:00 Subject: Re: value of an expression? ------=_Part_309790_27230697.1231541010569 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline s = "surprising" if (1+1 != 2) There are two expressions here, and the if is acting as a modifier. The first expression (s = "surprising") is only evaluated if the second expression (1 + 1 != 2) evaluates as true. It is the equivalent of: if (1 + 1 != 2) s = "surprising" end So s = "surprising" is never evaluated, and s continues to equal "test". Googling "ruby if modifier" should turn up some results. ------=_Part_309790_27230697.1231541010569--