Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.3K+ articles
DSA
22.5K+ articles
Python
20.5K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
11.6K+ articles
School Learning
11.4K+ articles
Java
10.5K+ articles
Mathematical
7.8K+ articles
Kotlin
862+ articles
Kotlin Control-flow
9 posts
Recent Articles
Popular Articles
Multiconditional Loop in Kotlin
Last Updated: 23 January 2022
As we all know about loops, in Kotlin, loops are compiled down to optimized loops wherever possible. For example, if you iterate over a number range, the bytecode will be ...
read more
Kotlin
Kotlin Control-flow
Returns, Jumps and Labels in Kotlin
Last Updated: 10 November 2021
Kotlin is a statically typed, general-purpose programming language developed by JetBrains, that has built world-class IDEs like IntelliJ IDEA, PhpStorm, Appcode, etc. It w...
read more
Picked
Kotlin
Kotlin Control-flow
Kotlin labelled continue
Last Updated: 18 May 2025
In this article, we will learn how to use continue in Kotlin. While working with a loop in programming, sometimes, it is desirable to skip the current iteration of the loo...
read more
Kotlin
Kotlin Control-flow
Kotlin unlabelled continue
Last Updated: 10 May 2025
In this article, we will learn how to use continue in Kotlin. While working with loops in programming, sometimes, it is desirable to skip the current iteration of the loop...
read more
Kotlin
Kotlin Control-flow
Kotlin Unlabelled break
Last Updated: 18 May 2025
When we are working with loops and want to stop the execution of loop immediately if a certain condition is satisfied, in this case, we can use either break or return expr...
read more
Kotlin
Kotlin Control-flow
Kotlin do-while loop
Last Updated: 24 May 2025
Like Java, the do-while loop is a control flow statement that executes a block of code at least once without checking the condition, and then repeatedly executes the block...
read more
Kotlin
Kotlin Control-flow
Kotlin while loop
Last Updated: 10 May 2025
In programming, loop is used to execute a specific block of code repeatedly until certain condition is met. If you have to print counting from 1 to 100 then you have to wr...
read more
Kotlin
Kotlin Control-flow
Kotlin for loop
Last Updated: 18 May 2025
In Kotlin, the for loop is equivalent to the foreach loop of other languages like C#. Here for loop is used to traverse through any data structure that provides an iterato...
read more
Kotlin
Kotlin Control-flow
Kotlin when expression
Last Updated: 18 May 2025
In Kotlin, when replaces the switch operator of other languages like Java. A certain block of code needs to be executed when some condition is fulfilled. The argument of w...
read more
Kotlin
Kotlin Control-flow
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !