YENGcontinue

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Add pre html tag)
m (Remplace pre by source)
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.
  
<pre>
+
<source lang="lsl">
 
for(integer i = 0; i < 5; i++)
 
for(integer i = 0; i < 5; i++)
 
{
 
{
Line 8: Line 8:
 
     doSomething(i);
 
     doSomething(i);
 
}
 
}
</pre>
+
</source >
  
 
[[Category:Scripts]]
 
[[Category:Scripts]]

Revision as of 07:41, 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