HP 3000 Manuals

IF THEN Statements [ HP Business BASIC/XL Migration Guide ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Migration Guide

IF THEN Statements 

IF THEN statements are automatically translated as indicated below:

          Table 13-4.  IF THEN Statements 

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                   BASIC/V                   |            HP Business BASIC/XL             |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN (stmt)                       | same                                        |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN (stmt)                       | IF (cond) THEN (stmt) ELSE (stmt)           |
| ELSE (stmt)                                 |                                             |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN (stmt)                       | IF (cond) THEN                              |
| ELSE DO                                     | (stmt)                                      |
| (stmts)                                     | ELSE                                        |
| DOEND                                       | (stmts)                                     |
|                                             | ENDIF                                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN DO                           | IF (cond) THEN                              |
| (stmts)                                     | (stmts)                                     |
| DOEND                                       | ENDIF                                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN DO                           | IF (cond) THEN                              |
| (stmts)                                     | (stmts)                                     |
| DOEND                                       | ELSE                                        |
| ELSE (stmt)                                 | (stmt)                                      |
|                                             | ENDIF                                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| IF (cond) THEN DO                           | IF (cond) THEN                              |
| (stmts)                                     | (stmts)                                     |
| DOEND                                       | ELSE                                        |
| ELSE DO                                     | (stmts)                                     |
| (stmts)                                     | ENDIF                                       |
| DOEND                                       |                                             |
|                                             |                                             |
---------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation