From: Seebs Date: 2009-12-31T17:25:11+09:00 Subject: Re: Why can't I use "or" here? 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. You could say "statement", but I don't think that really adds anything. But that's not the same issue as why "or" doesn't work in a method argument without extra (). -s -- Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!