From: Tim Greer Date: 2009-01-10T08:54:37+09:00 Subject: Re: value of an expression? Pascal J. Bourguignon wrote: > Just write: > > (s = ("surprizing" if ((1 + 1) != 2))) irb would have shown the result as nil for that specific test and they'd have asked the same question, I think. However, I won't guess what they intended to do or how. :-) > or > > ((s = "surprizing") if ((1 + 1) != 2))) ^^^ oops... you meant: ((s = "surprizing") if ((1 + 1) != 2)) -- Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. Industry's most experienced staff! -- Web Hosting With Muscle!