PDA

View Full Version : Official notation


Jerome
06-25-2003, 02:26 PM
Hi,

When I have:

if(something)
{
do one;
do two;
do three;
}

Then what is the official notation to seperate the "do one" till "do three" in the following notation:

something?do one, do two, do three:0;

Thanks
jerome

Choopernickel
06-25-2003, 02:31 PM
I don't believe the ternary operator supports activities like looping inside it. It's more suited for quick assignments like a= b? c: d; than your example. The first bit of code, with the complete if () {} statement will work just fine for you. Why change it?