Loop Question
#3

Well, if you use return, it's the same as using break, it will break the loop.

pawn Код:
for (new a = 0; a < 3; a++)
{
    if (a == 1) return 0; // Will be called first
    printf("a = %d", a); // Won't be called
}
Reply


Messages In This Thread
Loop Question - by TheArcher - 24.07.2011, 23:03
Re: Loop Question - by Vince - 24.07.2011, 23:10
Re: Loop Question - by [HiC]TheKiller - 24.07.2011, 23:12
Re: Loop Question - by TheArcher - 24.07.2011, 23:14
Re: Loop Question - by [HiC]TheKiller - 24.07.2011, 23:25
Re: Loop Question - by TheArcher - 24.07.2011, 23:30

Forum Jump:


Users browsing this thread: 3 Guest(s)