In the last lesson, you learned about operators and how you can use them to perform arithmetic, logical, and relational operations in your program. This lesson will teach you how to make decisions in your Kotlin programs using control flow.
Control flow refers to the order of execution of statements in a program. It determines how a program progresses from one instruction to another based on certain conditions. In other words, as the name suggests, it controls the flow of the program.
Understanding control flow is crucial for building clean, reusable, and dynamic programs capable of reacting to different scenarios. You have to consider readability and maintainability apart from the specific requirements of your application while considering the control flow structure.
Kotlin allows you to use control flow statements as an expression, which will also be explained in this lesson.
See forum comments
This content was released on Apr 10 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.