INTERVAL

 
 
 
 
 
 
INTERVAL
Purpose:
To perform an operation at a regular interval. The functions returns 1 every
 
 
 
expression time, otherwise it will return 0.
 
 
Format:
INTERVAL( expression )
 
 
Example:
10 IF INTERVAL( 0:10:00 ) THEN GOSUB 50
 
 
 
20
REM VAR1 WILL INCREMENT BY 2 EVERY HOUR
 
 
30
VAR1 = VAR1 + 2 * INTERVAL( 100 )
 
 
40 END
 
 
 
50
REM THIS ROUTINE IS EXECUTED EVERY 10 MINUTES
 
 
60 RETURN