If cond Then command If cond [Then] commands Else If cond [Then] commands Else commands EndIf
Conditional execution. The If condition is evaluated. If it yields True, the first (or only) set of commands is executed. If it yields False or EMPTY, the Else If condition, if any, is checked, and the first matching set of commands is executed. If neither condition yields True, the Else commands are executed.
There can be any number of Else If blocks (including none at all), and zero or one Else blocks.
See also: Select, If (Elementary Function), Elementary Commands