break
Leaves the innermost loop or switch. There is no continue.
Syntax
Section titled “Syntax”break;Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”None.
Luau emit
Section titled “Luau emit”break
Description
Section titled “Description”In switch, break leaves the synthetic repeat-until-true. There is no labeled break and no goto.
Example
Section titled “Example”while (true) { break;}Emits:
while true do breakendSee also
Section titled “See also”while · for · switch · ../unsupported