B
botp
Hi All,
just got hit w the ff
(irb):17: syntax error, unexpected kOR, expecting kTHEN or ':' or '\n' or ';'
when x==1 or x==2
^
"or" and "and" both exhibit the behaviour in ruby1.8/1.9.
workaround
1 put parens around the condition (not again)
2 replace or/and with ||/&&
i believe there are other similar quirks when using "and/or"..
has ruby relegated the use of "and/or"....?
best regards -botp
just got hit w the ff
SyntaxError: compile errorcase
when x==1 or x==2
print "yeoh!"
end
(irb):17: syntax error, unexpected kOR, expecting kTHEN or ':' or '\n' or ';'
when x==1 or x==2
^
"or" and "and" both exhibit the behaviour in ruby1.8/1.9.
workaround
1 put parens around the condition (not again)
2 replace or/and with ||/&&
i believe there are other similar quirks when using "and/or"..
has ruby relegated the use of "and/or"....?
best regards -botp