Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - if and else http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   if and else

   Allows you to express conditional logic in your programs.

       if(expression())       /* if expression is true */
          statement();        /* perform statement     */

       if(expression())       /* if expression true    */
          statement();        /* perform statement     */
       else                   /* if NOT true           */
          statement();        /* perform this statement*/

       if(expression())       /* when more that one statement*/
       {
          statement1();
          statement2();
       }


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson