Menu

Break

Brynner

Syntax

Description

This command lets you break out of a Loops 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];

See Also

[Category:Script Command]


Related

Wiki: Break
Wiki: Switch

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.