next up previous contents
Next: if...else if...else Statement Up: 判斷 Previous: if...else statement   Contents

nested if statements

  1. 語法
    if( boolean_expression 1)
    {
       /* Executes when the boolean expression 1 is true */
       if(boolean_expression 2)
       {
          /* Executes when the boolean expression 2 is true */
       }
    }
    



2015-01-16