From: pjb@... (Pascal J. Bourguignon) Date: 2009-01-10T08:49:40+09:00 Subject: Re: value of an expression? Adam Kittelson writes: > [Note: parts of this message were removed to make it a legal post.] > > 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 Why is it not equivalent to: s = if (1 + 1 != 2) s = "suprising" end ? (rethorical question). -- __Pascal Bourguignon__