YENGbreak
From OpenSimulator
(Difference between revisions)
m (Remplace pre by source) |
|||
Line 1: | Line 1: | ||
break can be used to jump out of do...while, while and for() loops ( or case clauses ) | break can be used to jump out of do...while, while and for() loops ( or case clauses ) | ||
− | + | Make sure to include yoptions; on second line of script. | |
<source lang="lsl"> | <source lang="lsl"> | ||
string error = ""; | string error = ""; |
Revision as of 14:30, 20 November 2020
break can be used to jump out of do...while, while and for() loops ( or case clauses )
Make sure to include yoptions; on second line of script.
string error = ""; while(true) { if(blabla) { error = "blabla"; break; } if(bla) { error = "bla"; break; } break; }