Skip to content

Continue

continue

Also searchable as: Continue

continue skips the rest of the body of the for, while or repeat … until loop it is in. The loop then goes on as if the body had ended: a for moves its counter to the next value, a while or an until tests its condition again.

Only the innermost loop is affected. A continue outside any loop does nothing.

for %i 1 10
{
if %i % 2 = 1
continue ; skip the odd numbers
event sysmessage %i is even
}
halt

See also

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