![]() |
Nexting a For from an IF...THEN - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16) +---- Thread: Nexting a For from an IF...THEN (/showthread.php?tid=640) |
Nexting a For from an IF...THEN - ardentcrest - 02-17-2015 Me again ![]() Code: 2004 for xx=length to 1 step -1 Syntax Error. Unexpected token 'NEXT' <NEXT> Why are the hard thing easy, and what should be easy hard ![]() Re: Nexting a For from an IF...THEN - boriel - 02-17-2015 ardentcrest Wrote:Me againI've splitted this topic and moved this question into here, since it's more generic to ZX BASIC syntax. Please, post your questions separated, if possible (one in each thread), so other users might find them more useful. ![]() You can no longer NEXT a for from any point. Instead use CONTINUE FOR to next, or use EXIT FOR to stop the loop: Code: 2004 for xx=length to 1 step -1 Read: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:CONTINUE">http://www.boriel.com/wiki/en/index.php ... C:CONTINUE</a><!-- m --> Re: Nexting a For from an IF...THEN - ardentcrest - 02-17-2015 boriel Wrote:I've splitted this topic and moved this question into here, since it's more generic to ZX BASIC syntax. Please, post your questions separated, if possible (one in each thread), so other users might find them more useful. Good Idea. Get ready for 2 or 3 new threads a day from me. :mrgreen: :mrgreen: |