IF-THEN-ELSIF-ELSE provides a method of checking many alternatives in one statement. Formally it is equivalent to nested IF-THEN-ELSE-IF-THEN commands, but only one END IF is needed.
Example
The following example uses an IF-THEN-ELSIF-ELSE statement to count the number of employees by compensation ranges of $25,000: