if-elseif-else Statement
This lesson discusses if-elseif-else statements in detail using examples.
We'll cover the following...
Else-ifs #
Else-ifs are the complex nested form of if-else
block. They are used when you have to check multiple conditions and there’s a different action that needs to be performed corresponding to every condition. Here the else
statement gets replaced by one or many else if
statements and there ...