Name | Repeat |
Related Guide Page | https://guide.denizenscript.com/guides/basics/loops.html |
Syntax | repeat [stop/next/<amount>] (from:<#>) (as:<name>) [<commands>] |
Short Description | Runs a series of braced commands several times. |
Full Description | Loops through a series of braced commands a specified number of times.
To get the number of loops so far, you can use <[value]>. Optionally, specify "as:<name>" to change the definition name to something other than "value". Optionally, to specify a starting index, use "from:<#>". Note that the "amount" input is how many loops will happen, not an end index. The default "from" index is "1". Note that the value you give to "from" will be the value of the first loop. To stop a repeat loop, do - repeat stop To jump immediately to the next number in the loop, do - repeat next |
Related Tags | <[value]> to get the number of loops so far
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Synonyms (Search Aid) | for |
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/RepeatCommand.java#L28 |