CocoaDev

Edit AllPages

Here are some conditional statements that are used often in C and Objective-C


The if conditional statement —-

if (i<10)

{

}


The if-else conditional statement —-

if (i<10)

{

}

else

{

}


The switch conditional statement —-

switch()

{

 case (1): blah, blah;

               break;

 case (2): blah, blah;

               break;

 default:  blah, blah;

               break;

}

Go back to HowToProgramInOSX