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.
    • For generation on AS/400, this instruction is only compatible with OS/400 versions above or equal to V5R2.


Section for use

All

 

Syntax

ELSE_IF Condition

 

Description

This instruction is optional with the IF instruction. It is placed within an IF/END block.

If the IF or ELSE_IF condition (attached to the IF condition) preceding it is not verified, and if the Condition condition is verified, then all the instructions found after the ELSE_IF are executed until the next ELSE_IF or ELSE or END (attached to the same IF condition). We then exit the IF/END block.

 

The Condition condition follows the same syntax as an IF condition.

 

For an IF/END block, you can have as many ELSE_IF as you like.

Moreover, for a given IF, there cannot be a ELSE_IF after a ELSE.

 

Example

IF WVAR = 1

   WRESULT = 1

ELSE_IF WVAR = 2 AND WCODE = 1

  WRESULT = 2

ELSE_IF WVAR = 2 AND WCODE = 2

  WRESULT = 3

END

 

↑ Top of page

  • Aucune étiquette