Breaks out of the current 'while' loop's code block and begins executing code after that loop's 'end' statement.
Example:
$loop = 5
while $loop > 0
| dec $loop =
| if $loop =< 2
| | break
| else
| | write to player logbook = $loop
| end
|@ = wait 100 ms
end
write to player logbook = 'loop ended'
This would result in 5, 4 and 3 being written to the players logbook but 1 and 2 would be missed as the 'if' condition passed, so the 'break' was used (it wouldn't even get to check 1 ). The next thing written would be 'loop ended'
Command Location:
- »» General Commands
- »» Flow Control
break
- »» Flow Control