Example:
|
10
|
VAR1 = AVG ( IN1 , IN2 , IN3 , IN4 ) - 20
|
|
|
|
|
|
|
20
|
ON VAR1 GOSUB 100 , 200 , 300 , 400 , 500
|
|
|
|
|
|
30 END
|
|
|
|
|
|
|
100
|
REM THE AVERAGE IS 21 : RETURN
|
|
|
|
|
|
200
|
REM THE AVERAGE IS 22 : RETURN
|
|
|
|
|
|
300
|
REM THE AVERAGE IS 23 : RETURN
|
|
|
|
|
|
400
|
REM THE AVERAGE IS 24 : RETURN
|
|
|
|
|
|
500
|
REM THE AVERAGE IS 25 : RETURN
|
|
|
|
|
|
|
|
|
|
|