Break Statement
#4

break; just jumps out of a loop
pawn Код:
new id;

for(new i=0; i<10; i++) {
    if(Something[i] == 1) {
        id = i;
        break; // calling break; won't stop the function
    }
}
// the code will just jump to here.
Reply


Messages In This Thread
Break Statement - by Abreezy - 15.11.2012, 04:00
Re: Break Statement - by Black Wolf - 15.11.2012, 04:03
Re: Break Statement - by Abreezy - 15.11.2012, 04:06
Re: Break Statement - by ReneG - 15.11.2012, 04:07
Re: Break Statement - by Abreezy - 15.11.2012, 04:22

Forum Jump:


Users browsing this thread: 1 Guest(s)