From: Bulat Ziganshin Date: 2002-10-30T15:11:01+09:00 Subject: Re: "multiple assignment in conditional" Hello Gavin, Wednesday, October 30, 2002, 8:36:50 AM, you wrote: GS> def foo GS> [4,5] GS> end GS> Both of the following expressions give me a SyntaxError: "multiple assignment GS> in conditional" (this is Ruby 1.6.5 on Cygwin): GS> a, b = foo and puts a GS> (a, b = foo) and puts a 1.7.3: GS> a, b = foo and puts a syntax error GS> (a, b = foo) and puts a works ok and prints 4 1.6.7 produces the same result as your 1.6.5. i think that problem is what "and" needs ONE value in first argument and your multiple assihnment supports TWO values :) but in any way in 1.7.3 second expression works. btw, what you exactly want? a,b=foo; a and puts a or a,b=foo; b and puts a or a,b=foo; a and b and puts a ? ;) -- Best regards, Bulat mailto:bulatz@integ.ru