Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# while true loop

while (true)//the "true" keyword mean it will run forever, you can change it too (example while (i > 3))
{
	//Code here
    System.Threading.Thread.Sleep(100) // Convertion: 1000 = 1 second
    //if you are using a while true statment, your program will frezze without this Sleep keyword
}
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #true #loop
ADD COMMENT
Topic
Name
5+3 =