elseif
In computer programming, else if is a conditional control-flow construct that introduces an additional test when previous conditions in an if-else chain have failed. It enables a program to select among several mutually exclusive execution paths.
In languages derived from C, the form is written as else if with a space, though some
Semantics: Conditions are evaluated sequentially from the top. When a condition evaluates to true, its block
Usage considerations: Keep conditions simple and non-overlapping, order branches by likelihood or specificity, and avoid duplicating
Language variants: Ruby uses elsif; Python uses elif; PHP supports elseif and also else if for compatibility.