Discord
Login
Community
DARK THEME

How do I use the "break" variable?

Help me.

The documentation explains it actually quite well:

You can exit a for or while loop prematurely with the statement break. Example:

while true 
  x = x+1  
  if x>= 100 then break end  
end

Do you have a specific situation where you would like to use it?

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community