Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B) (C/S)

(S)

(I/B) (C/S)

(I) (C/S)

 

Warning: In the case of ADELIA programs, this instruction is not compatible with the Adelia Studio C generator or with Adelia/400.

 

Section for use

All

 

Syntax

OTHER_VALUE

 

Description

This instruction is found within a SWITCH/END_SWITCH block.

The presence of an OTHER_VALUE is optional, but there cannot be more than one per SWITCH/END_SWITCH block. Moreover, for a given SWITCH, there cannot be an IF_VALUE after an OTHER_VALUE.

If the value of the SWITCH expression does not correspond to any of the values proposed in the IF_VALUE, then all the instructions following this instruction should be executed, until the next END_SWITCH for the SWITCH that this OTHER_VALUE depends on. We then exit the SWITCH/END_SWITCH block.

 

Example

SWITCH  WCODE

IF_VALUE  12  15 25

    WCODE = WCODE * 3

    WTYPE = '1'

IF_VALUE  7  8

     WCODE = WCODE * 2

     WTYPE = '2'

OTHER_VALUE

     WCODE = WCODE + 1

     WTYPE = *BLANK

END_SWITCH

 

↑ Top of page


  • Aucune étiquette