You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there breaks and continues for loops like in other languages?
I can't remember any but maybe my memory is holey!
(For clarity and posterity, if someone only knows caos (no worries :3 ), break and continue jump to the end or beginning of a loop. Like, if you use the "break" command, the next line to be executed is the one after the UNTL or NEXT or REPE or whatever :3, and if you use "continue" then it jumps immediately to the next iteration of the loop, skipping anything after it and starts over right after the LOOP or ENUM or REPS or whatever :3 )
The text was updated successfully, but these errors were encountered:
You do have to finish an enum with a NEXT, but you're only allowed to have the 1 NEXT, and SUBR can only have 1 RETN, REPS only 1 REPE, LOOP can only have 1 UNTL or EVER etc. So for loops, there's no real breaks or continues without stopping the script itself.
Are there breaks and continues for loops like in other languages?
I can't remember any but maybe my memory is holey!
(For clarity and posterity, if someone only knows caos (no worries :3 ), break and continue jump to the end or beginning of a loop. Like, if you use the "break" command, the next line to be executed is the one after the UNTL or NEXT or REPE or whatever :3, and if you use "continue" then it jumps immediately to the next iteration of the loop, skipping anything after it and starts over right after the LOOP or ENUM or REPS or whatever :3 )
The text was updated successfully, but these errors were encountered: