if…..else if Statement
if…..else if Statement
But what if we have more than two blocks of code? And what if we need to check which block of code evaluates to true? Well here we use an if…..else if statement.
if……else if statements allows us to check multiple expressions and enter the block of code where the condition evaluates to true.
Syntax:
Example:
Output: