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
Post a Comment