From: "Ralf Müller" Date: 2005-04-01T20:47:52+09:00 Subject: Re: && Syntax On Fri, 1 Apr 2005 20:29:52 +0900 Lyndon Samson wrote: > Yes, I'm a rube-noob > > -- ok > if 1 == 1 && > 2 == 2 > puts "TRUE" > end > > -- syntax error > if 1 == 1 > && 2 == 2 > puts "TRUE" > end > > The second form is more convienient as you can easily comment out the > line, but it causes a syntax error. > > I guess the interpreter need to know where the conditional finishes > and the statements begin? > > -- > Into RFID? www.rfidnewsupdate.com Simple, fast, news. > What about: irb(main):018:0> if 1 == 1 \ irb(main):019:2* && 2 == 2 irb(main):020:1> p 'df'; end "df" => nil