ADELIA |
VADELIA |
SADELIA |
WADELIA |
MADELIA |
(I/B) |
(I/B) (C/S) |
(B) (S) |
(I/B) (C/S) |
(I) (C/S) |
Section for use
All
Syntax
IF VarId1 BETWEEN VarId2OrConstant;VarId3OrConstant
Description
This instruction is a logical operator and can only appear in a condition.
The three operands of this instruction must be of the same type.
The instruction must be followed by a list of two values separated by the character ";".
These two values are included into the test.
IF YEAR BETWEEN 57;90 means IF YEAR >= 57 AND YEAR <= 90
Example
IF Z_ITEM_CODE BETWEEN 'A00';'G99'
INVOICE_UNIT = 'unit'
ELSE
INVOICE_UNIT = 'weight'
END
*
IF MONTH_NBR BETWEEN 1;12
WOK_FLAG = 'OK'
ELSE
WOK_FLAG = *BLANK
END
*
V1 = 13000
V2 = 13999
IF ZIP_CODE BETWEEN V1;V2
STATE_NAME = 'MISSISSIPI'
END