Manual:DIL Manual/break

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 13:08, 27 May 2020 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


break:
    The break statement makes you break out of any
    loop you're currently in.
Example:

 dilbegin foo();
   code
   {
     while (self.inside) {
       if (self.position &lt POSITION_SLEEPING)
         break;
       exec("say I own something", self);
       pause;
     }
   }
   dilend
---~---~---~---~---~---~---~---~---