03.02.2016, 18:15
Thanks for answering people. Appreciated.
I know I have to use it inside a loop. That was just an example. However, can you tell me in which condition continue; is needed? I kinda didn't understand Mencent's answer.
Also, do I have to use break; to stop every loop? Even while using foreach. No matter if it's a small code or a large one.
Quote:
2. You can't even do that, you'll get an error ("error 024: "break" or "continue" is out of context"). Use it in loops.
|
Also, do I have to use break; to stop every loop? Even while using foreach. No matter if it's a small code or a large one.