syntax of nested if else

archanasinghr
Posts: 1
Joined: Wed Sep 11, 2019 7:58 am

syntax of nested if else

Post by archanasinghr »

//nested if else statement
if (test expression1)
{
// statement(s)
}
else if(test expression2)
{
// statement(s)
}
else if (test expression3)
{
// statement(s)
}
.
.
else
{
// statement(s)
}

Edit don_apple: topic moved from german to english section.