Download ACS CFSound-IV BASIC Programming
Transcript
ACS CFSound-IV BASIC Programming Manual 1 October 2015 CONTINUE Program mode only. Causes execution to pass to the end of the innermost enclosing FOR / NEXT or WHILE / WEND loop - execution continues at the closest NEXT or WHILE statement. 10 REM while/continue/wend test 15 WHILE a < 10 20 a = a + 1 25 IF (a & 1) THEN CONTINUE 30 PRINT a 35 WEND Ready run 2 4 6 8 10 Ready 10 REM for/continue/next test 15 FOR i = 1 TO 10 20 IF (i & 1) THEN CONTINUE 25 PRINT i 30 NEXT i Ready run 2 4 6 8 10 Ready A CONTINUE statement can be used to continue a FOR / NEXT or WHILE / WEND loop from within a block IF statement: 10 REM while/continue/wend test 15 WHILE a < 10 20 a = a + 1 25 IF (a & 1) THEN 30 CONTINUE 35 ENDIF 40 PRINT a 45 WEND Ready run 2 4 6 8 10 Ready 10 REM for/continue/next test 15 FOR i = 1 TO 10 20 IF (i & 1) THEN 25 CONTINUE 30 ENDIF 35 PRINT i 40 NEXT i Ready run 2 4 6 8 10 Ready Copyright©1992-2015 by ACS, Sarasota, Florida 70 Back to Table of Contents ALL RIGHTS RESERVED