InRange Function

Returns True (1) if value is greater than or equal to low and value is less than or equal to high; that is, returns True (1) if the user's aircraft is between 0–2000 feet MSL.

Syntax

InRange (value, low, high)

Remarks

If you specify InRange (value, high, low), InRange fails, but does not return an error message. That is, InRange (value, low, high) tests whether value is greater than or equal to low and whether value is less than or equal to high. If low and high are reversed, and not equal to each other, the test will always return False.

Example

IF INRANGE(PLANE_ALT, 0, 2000) THEN

PRINT "Altitude is less than 2,001 feet."

ENDIF