7.131 WHEN

Note: Usage options

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.131.1 WHEN Parameters

7.131.2 WHEN Examples

7.11 CASE

7.44 ENDCASE

7.94 OTHERWISE

                                                         Required

 

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

                             |               |

                             |               |

                              --- 20 max ----