Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Source by www.tutorialgateway.org #
 
PREVIOUS NEXT
Tagged: #nested
ADD COMMENT
Topic
Name
3+7 =