YENGbreak

From OpenSimulator

Revision as of 14:03, 16 March 2021 by Djphil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

break can be used to jump out of do...while, while and for() loops ( or case clauses )

Make sure to add yoptions; to the second line of the script, usually line number 1 starting from 0.
string error = "";
 
while(true)
{
    if(blabla)
    {
        error = "blabla";
        break;
    }
    if(bla)
    {
        error = "bla";
        break;
    }
    break;
}
Personal tools
General
About This Wiki