AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Continue in 2 loops (https://forums.alliedmods.net/showthread.php?t=27662)

MaximusBrood 04-26-2006 12:06

Continue in 2 loops
 
If I have this code:

Code:
for(new a = 0; a < SOME_DEFINE; a++) {     for(new b = 0; b < SOME_OTHER_DEFINE; b++)     {         if(!bla[a][b])             continue;     } }

When bla[a][b] is not true, would it continue with the first or the second loop?

Greenberet 04-26-2006 12:19

with the 2nd loop

Xanimos 04-26-2006 13:08

if you wan't it to continue with the first use 'break'


All times are GMT -4. The time now is 05:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.