YENGcontinue

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add into category)
m (Add pre html tag)
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++)
+
<pre>
{
+
for(integer i = 0; i < 5; i++)
  if(i == 3) //skip 3
+
{
      continue;
+
    if(i == 3) // skip 3
  doSomething(i);
+
        continue;
}
+
    doSomething(i);
 +
}
 +
</pre>
  
 
[[Category:Scripts]]
 
[[Category:Scripts]]

Revision as of 05:50, 22 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