[Mono-list] Conditionals in C#

Daniel Carrera dcarrera@math.toronto.edu
Sat, 6 Apr 2002 14:13:25 -0500 (EST)


Is it possible to write the following conditional in C#?

string var = (3 > 2 ? "ok" : "no" );


It doesn't compile under mcs, but it might just not be implemented.
Is there some sort of equivalent?

I've been loking all over the on-line tutorials and I haven't found any
reference to this.

Thanks,
Daniel.