Manual:DIL Manual/continue

From DikuMUD Wiki
Jump to navigation Jump to search


continue:
    The continue statement makes you jump to the top
    of any loop you're currently in.
Example:

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