C# How to I escape 2 lines of loops -


this code:

while(true){     for(int x = 0; x < 10; x++){         stringarray[x] = new string();         if(isdead){             break; //break out of while loop         }     } } 

how should please, sorry if english good,i still learning.

you create bool example:

bool leaveloop; 

and if isdead true set leaveloop true, in while loop check if leaveloop true break it.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -