SPL to HP C/XL Migration Guide (30231-90001)

3- 13
Labels
Table 3-21. Labels
---------------------------------------------------------------------------------------------
| | |
| SPL | HP C/XL Equivalent |
| | |
---------------------------------------------------------------------------------------------
| | |
| A label is an identifier, followed by a | Same as SPL. |
| colon, that prefixes a statement. | |
| | |
---------------------------------------------------------------------------------------------
| | |
| Can be declared in a LABEL declaration. | Can not be declared. |
| | |
| Does not need to be declared. | |
| | |
---------------------------------------------------------------------------------------------
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. | |
| | |
---------------------------------------------------------------------------------------------