else


Else is used after an if statement. If the condition is false, it's opposite will be true and else will run its statement or code block. Syntax:
if(var1 == var2) // Perform action
else // Perform different action
Or if the else statement is used to run a code block:
if(var1 == var2) // Perform action
else
{
    // Perform different action
}