ex.hlp (Topic list)
RUN Statement Example
                        Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
' This example uses the RUN statement to restart the program. This example
' shows that RUN resets all numeric variables to 0. As the line number
' following RUN increases in lines 60, 70, 80, and 90, the variables
' in the earlier statements lose their assigned values.
 
10 A = 9
20 B = 7
30 C = 5
40 D = 4
50 PRINT A, B, C, D
60 IF A = 0 THEN 70 ELSE RUN 20
70 IF B = 0 THEN 80 ELSE RUN 30
80 IF C = 0 THEN 90 ELSE RUN 40
90 IF D = 0 THEN END ELSE RUN 50