Skip to content

/next

Syntax

/for <varname> <initial-value> to|downto <final-value> [step <interval>]
/next <varname>

Description

This runs all commands between the /for line and the /next line, after which it increments/decrements the varname number (#1) by step number (#3) (default is 1) before running through the commands again. It will keep doing this until the varname number equals #2. You can end a /for loop immediately with /break or try the next iteration with /continue.

See also

This command is added by MacroQuest.

Republished and possibly modified from https://docs.macroquest.org/reference/commands/next/