Command:/break

From the wonderful RedGuides Wiki

This command is added by MacroQuest

Syntax Key
Notation Description
Text without brackets or braces Required items
<Text inside angle brackets> Placeholder for which you must supply a value
[Text inside square brackets] Optional items
Vertical bar (|) Separator for mutually exclusive items; choose one
{Text | inside | braces} Set of required items; choose one
Ellipsis () Items that can be repeated
Syntax /break
Description In macroscript, end a /for or /while loop immediately.

Options

Examples

 /for varname 1 to 5
   /if ({$varname} == 3) /break
   /echo ${varname}
 /next varname

Will output:

 1
 2

See also