Else

in

The else element is used in conjunction with the <if> tag. It is used as the final logic constructor between conditional statements. Content in the <else> element is only executed if the <if> and <elseif> cond attributes evaluate to “false”. The <if> element is used for conditional logic. It has the optional <else> and <elseif> elements. Essentially, if the cond attributes of the containing if and preceding <elseif> elements evaluate to false, the content between the else element and the closing if tag is executed.

Related links