DO
DO([count])
Type: Action
Category: Control Flow
Permission: N/A
Since Minecraft Version: v1.8.1 beta
Since Version: v0.6
Minor: 6
API: N/A
Patch: N/A
Description
Begins a loop. Needs to be closed with LOOP, WHILE, or UNTIL.
The loop can be exited early by using BREAK.
It is possible to specify a [count] number for it to have a maximum amount of loops. If this number is not specified, it will loop indefinitely.
Example
log("start");
do(5);
log("looping over");
loop;
log("end");
Related Resources
Changelog
- Added em v0.6:
- Fixed em v0.8.5: Parses variables correctly