The range operator is denoted by double periods .. inserted between 2 integer expressions.
It is usually used in conjunction with the membership operator in [] to test if an expression belongs to a set of values.
bisallowedspeed = nspeed in [30..90] // in europe
The range operator can also be used in a switch statement.
switch nAge
case 13..19
sRESULT = 'teenager'
case 50..59
sRESULT = 'in the fifties'
endswitch
It is important to note that special character markers are treated as single characters.
Topic 133900, last updated on 13-Dec-2022