HP 3000 Manuals

Switches [ SPL to HP C/XL Migration Guide ] MPE/iX 5.0 Documentation


SPL to HP C/XL Migration Guide

Switches 

          Table 3-22.  Switches 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                     SPL                     |             HP C/XL Equivalent              |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| A switch is an ordered list of labels       | Can be emulated with a switch statement.    |
| indexed by an identifier and declared with  |                                             |
| a SWITCH declaration.  It uses a GOTO       | See "SWITCH Declaration" and "GO TO         |
| statement to transfer to a label, based on  | Statement".                                 |
| an index value.                             |                                             |
|                                             |                                             |
---------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation