Correct usage of break.
#5

Thanks for clarifying
Could you please tell me if it works this way.
Example:
PHP код:
PlayaInfo[playerid][0][2]=0
PHP код:
for(new i=0i<=3i++) 
        { 
            if(
PlayaInfo[playerid][0][i]==0
            { 
            
thebiz=i
            break; 
            } 
        } 
This look will stop when i=2 right?
And thebiz will have the number 2?
Reply


Messages In This Thread
Correct usage of break. - by Alvin007 - 08.02.2015, 23:35
Re: Correct usage of break. - by Schneider - 08.02.2015, 23:44
Re : Correct usage of break. - by Alvin007 - 08.02.2015, 23:46
Re: Correct usage of break. - by PowerPC603 - 08.02.2015, 23:48
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 00:06
AW: Correct usage of break. - by Nero_3D - 09.02.2015, 01:41
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 01:46
Respuesta: Correct usage of break. - by CuervO - 09.02.2015, 03:31
Re: Correct usage of break. - by Vince - 09.02.2015, 06:42
Re : Correct usage of break. - by Alvin007 - 09.02.2015, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)