Files
developer-roadmap/roadmaps/kotlin/content/label-loops@Lfdvpef2gXVdqr4e1dCHw.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

581 B

Label Loops

Label loops in Kotlin allow you to control which loop is exited or continued when using break or continue statements within nested loops. By assigning a label (an identifier followed by @) to a loop, you can specify which loop the break or continue statement should affect. This is particularly useful when you want to exit or continue an outer loop from within an inner loop, providing more precise control over the flow of execution.

Visit the following resources to learn more: