YENGcontinue
From OpenSimulator
(Difference between revisions)
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. | |
| − | + | <pre> | |
| − | + | for(integer i = 0; i < 5; i++) | |
| − | + | { | |
| − | + | if(i == 3) // skip 3 | |
| − | + | continue; | |
| − | + | doSomething(i); | |
| + | } | ||
| + | </pre> | ||
[[Category:Scripts]] | [[Category:Scripts]] | ||
Revision as of 04: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);
}