Author Topic: Suggestions for Wiki updates  (Read 1602 times)

FellippeHeitor

  • QB64 Partner Site Owner
  • Hero Member
  • *
  • Posts: 1765
  • LET IT = BE
    • QB64.org
Re: Suggestions for Wiki updates
« Reply #30 on: August 19, 2017, 05:09:17 am »
Skip indeed:
Code: [Select]
FOR i = 1 to 10
    IF i = 5 THEN _SKIP
    PRINT i;
NEXT

We don't wanna be so different from the world: https://www.tutorialspoint.com/cplusplus/cpp_continue_statement.htm

codeguy

  • Hero Member
  • *****
  • Posts: 3973
  • what the h3ll did i name that code?
    • stuff at dkm
Re: Suggestions for Wiki updates
« Reply #31 on: August 19, 2017, 05:42:54 am »
This might be asking a bit much, BUT it would be nice to have something that skips multiple do/,for/while loops. We have exit do/for/while, but they only exit one level of iteration. Or should we just resign to using GOTO or clumsy flags to signal a multiple loop exit? Whichever. Something like _SKIP, for single to right before loop/while/next, to loop/while/next to _skip n to cut out of multiple loops to the following loop/next/send. IJS. Say perhaps even _SKIP -1 TO exit the entire multiple loop construct.
« Last Edit: August 19, 2017, 05:54:47 am by codeguy »