Use of "continue" properly?
#2

While in a loop, "continue;" is used to skip to the next looped whatever it is. For example
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
   if(i == 5) continue;
   {
      //code here
   }
}
That will skip i when it equals 5. And not execute the code for it.
Reply


Messages In This Thread
Use of "continue" properly? - by MikkelGutten - 10.07.2010, 18:55
Re: Use of "continue" properly? - by Grim_ - 10.07.2010, 18:58
Re: Use of "continue" properly? - by MikkelGutten - 10.07.2010, 19:00
Re: Use of "continue" properly? - by Grim_ - 10.07.2010, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)