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 iSeries Studio C generator or with Adelia/400.

 

Section for use

All

 

Syntax

END_SWITCH

 

Description

This instruction marks the end of the SWITCH/END_SWITCH block.

 

Each SWITCH instruction must have a corresponding END_SWITCH instruction.

 

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