elsepart
Elsepart refers to the portion of a conditional construct that executes when the condition being tested is false. It is commonly called the else clause or else branch and provides the alternative path when the then-part does not apply.
In many imperative languages, such as C, C++, Java, and JavaScript, the typical form is if (condition)
The else part is optional in most languages; if the condition is false and no else part
A common programming concern related to the else part is readability, especially with nested conditionals. The
In expression-oriented languages, the conditional may yield a value, and the else part contributes the alternative
See also: if statement, conditional expressions, switch statement, default case.