Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# stop loop

while (playerIsAlive) 
{ 
// this code will keep running
  if (playerIsAlive == false) 
  { 
    // eventually if this stopping condition is true, 
    // it will break out of the while loop
    break; 
   } 
 } 

// rest of the program will continue
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #stop #loop
ADD COMMENT
Topic
Name
7+1 =