else

Executes the following program block only if the last if statement returned false; that is, failed.

Syntax

else { program block }

Examples

if
{
      // true or false statement
} then
{
     // execute if true
} else
{
     // execute if false
}