InRange360 Function

Similar to the InRange function, except that the arguments are limited to 0–360 degrees.

Syntax

InRange360 (value, left, right)

Example

'Handles headings that cross north.

IF INRANGE360(PLANE_HEADING, 355, 005)

PRINT "You are heading north."

ENDIF

'Handles radials that cross north.

IF INRANGE360(VOR_1_RADIAL, 315, 045)

PRINT "You are north of the VOR."

ENDIF