YENGcontinue

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "continue allows to skip into next step on do...while, while and for loops for(integer i = 0; i< 5; i++) { if(i == 4) //skip 4 continue; doSomething(i); }")
 
Line 1: Line 1:
 
continue allows to skip into next step on do...while, while and for loops
 
continue allows to skip into next step on do...while, while and for loops
  
  for(integer i = 0; i< 5; i++)
+
  for(integer i = 0; i < 5; i++)
 
  {
 
  {
   if(i == 4) //skip 4
+
   if(i == 3) //skip 3
 
       continue;
 
       continue;
 
   doSomething(i);
 
   doSomething(i);
 
  }
 
  }

Revision as of 16:36, 19 September 2020

continue allows to skip into next step on do...while, while and for loops

for(integer i = 0; i < 5; i++)
{
  if(i == 3) //skip 3
     continue;
  doSomething(i);
}
Personal tools
General
About This Wiki