--- id: kw-break name: break category: control kind: keyword tokens: break sig: break tip: Leave the enclosing loop immediately. order: 9 --- break exits the innermost while or for loop at once, skipping the rest of the body and any remaining iterations, and continues with the code after the loop. Use it to stop early the moment you have what you need — the first match in a scan, a collision that ends the sweep, or a guard inside while true that decides when to leave. It affects only the loop that contains it; an outer loop keeps running. ```ludic program FindFirst { state FindFirstState { found: int = 0 - 1 } handler Scan(find_first_st: mut FindFirstState) phase Update { for i in 0 .. 10 { if i * i > 20 { find_first_st.found = i break # stop at the first i whose square exceeds 20 } } } } ```