7 100 WHEN

LANSA Technical

7.100 WHEN

The WHEN command is used within a CASE / ENDCASE block in conjunction with other WHEN commands and an optional OTHERWISE command to condition the execution of RDML commands.

The WHEN command is used to nominate expression(s) that should be evaluated as true or false (in conjunction with the CASE command) to condition the execution of the following RDML commands.

Only one WHEN command can be evaluated to true within a CASE ENDCASE structure.

Refer to the CASE, ENDCASE and OTHERWISE commands for more details and examples of these commands.

Also See

7.100.1 WHEN Parameters

7.100.2 WHEN Examples

7.8 CASE

7.34 ENDCASE

7.73 OTHERWISE

                                                         Required

 

  WHEN --------- VALUE_IS ----- 'expression' -------------------|

                             |               |

                             |               |

                              --- 20 max ----