Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > IN-RANGE

 

 

Purpose

IN-RANGE tests whether a value is within or equal to the limits of a specified range.
 

Syntax

IF value IN-RANGE ‘low-limit’ ,‘high-limit THEN statement;
 

Operation

value is the value to be tested.  This can be an alphanumeric, wide, or numeric variable.
low-
limit is the lower limit of the range.
high-limit
 is the upper limit of the range
 

Remarks
 

 

Example

IF $CHAR IN-RANGE "A","Z" THEN STEP(3);
is equivalent to:

If $CHAR >= "A" and $CHAR <= "Z"’ then STEP(3);
 

Comment on this topic

Topic ID: 520069

 
 
 

Table of Contents

Index

Glossary

-Search-

Back