The if statement evaluates its conditional expression and executes the then statements if the conditional is true. If the conditional evaluates to false, the optional elsif clause (of which there may be any number) is tested and executed. If none of these clauses evaluates to true, the optional else statements are executed.