From: Stefano Crocco Date: 2008-02-16T06:36:35+09:00 Subject: Re: syntax problem: @var=="v" ? { ... } : { ... } Alle Friday 15 February 2008, Luca Scaljery ha scritto: > 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 p(@var == "v" ? "V" : "M") Stefano