Difference between revisions of "Break"
From Hercules Wiki
(Created page with "== Syntax == * break; == Description == This command lets you break out of a loop or a switch block. After the break; command has been issued, the script will con...") |
Dastgirpojee (Talk | contribs) m (→Description) |
||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
− | This command lets you break out of a [[loop]] or a [[switch]] block. After the break; command has been issued, the script will continue where needed. | + | This command lets you break out of a [[Loops|loop]] or a [[switch]] block. After the break; command has been issued, the script will continue where needed. |
== Examples == | == Examples == |
Latest revision as of 16:50, 3 October 2013
Contents |
Syntax
- break;
Description
This command lets you break out of a loop or a switch block. After the break; command has been issued, the script will continue where needed.
Examples
switch (getequipweaponlv(EQI_HAND_L)) { case 0: mes "You are holding a shield, so it doesnt have a level"; break; case 1: case 2: case 3: case 4: mes "You are holding a lvl "+ getequipweaponlv(EQI_HAND_L) +" weapon"; break; case 5: mes "You are holding a lvl 5 weapon, hm, must be a custom design"; break; } close;