CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
Multi-Way If Statements
Multiple Selectors can appear as direct extensions to two-way selectors, using else-if clauses (ALGOL 68, FORTRAN 77, Modula-2, Ada)
Ada:
if ... then ... elsif ... then ... elsif ... then ... else ... end if
Far more readable than deeply nested if's
Allows a boolean gate on every selectable group