break
#2

Break is used when you want to stop a loop.

pawn Код:
for(new something=0; something<somethingElse; something++)
{
    if(something == 10)
    {  
        //do what you want
        break; //stops the loop if something reaches 10
    }
}
Bad example, but it get's to the point.
Reply


Messages In This Thread
break - by iJumbo - 24.10.2010, 08:33
Re: break - by LarzI - 24.10.2010, 09:07
Re: break - by iJumbo - 24.10.2010, 09:40
Re: break - by LarzI - 24.10.2010, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)