From: Luca Scaljery Date: 2008-02-16T06:34:35+09:00 Subject: syntax problem: @var=="v" ? { ... } : { ... } Hi All I tried to print an "M" or "V" depending on the value of a variable, like @var = "v" @var == "v" ? { p "V" } : { p "M" } this however doesn't work, but I'm sure something like this can be done! Any suggestions ? Cheers LuCa -- Posted via http://www.ruby-forum.com/.