while
A loop which will execute its body as long as the provided condition is evaluated to true.
Syntax
while $condition with $iter
Example
# Check the condition before every iteration.
while {AmountOf @all} > 0
wait 1s
Print "there are players on the server!"
end
# Bind the current 1-based iteration number when needed.
while {Chance 90%} with $iter
Print "current attempt to leave loop: {$iter}"
wait 1s
end
# Use break to leave the loop or continue to skip to its next iteration.