Name | While |
Related Guide Page | https://guide.denizenscript.com/guides/basics/loops.html |
Syntax | while [stop/next/[<value>] (!)(<operator> <value>) (&&/|| ...)] [<commands>] |
Short Description | Runs a series of braced commands until the tag returns false. |
Full Description | Runs a series of braced commands until the if comparisons returns false. Refer to if for if command syntax information.
To end a while loop, use the 'stop' argument. To jump to the next entry in the loop, use the 'next' argument. |
Related Tags | <[loop_index]> to get the number of loops so far.
|
Usage Example |
|
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/WhileCommand.java#L26 |