Skip to content

Break

break

Also searchable as: Break

break leaves the for, while or repeat … until loop it is in. The script goes on with the line after the loop.

Only the innermost loop is left. A break outside any loop does nothing.

set %test 1
while %test < 10
{
if %test = 7
break
set %test %test + 1
}
display ok %test ; shows 7
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.