From: Albert Schlef Date: 2009-12-31T18:31:39+09:00 Subject: Re: Why can't I use "or" here? Seebs wrote: > On 2009-12-31, Albert Schlef wrote: >> Interesting. >> >> Why is the following a syntax error? >> >> puts (123 if true) >> >> and the following isn't? >> >> puts (123 or 456) > > The if modifier has to go on the tail end of the containing complete > expression. Then why does the following work? a = (123 if true) -- Posted via http://www.ruby-forum.com/.