Range

Navigation:  Appendices > Macro Language > Operators >

Range

Previous pageReturn to chapter overviewNext page

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 invisible character tokens are treated as single characters.


Topic 133900 updated on 31-Oct-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?range.htm