Introduction
In this lesson you will explore various the code branching, which helps control the flow of your
program’s execution. You will also delve into the usage of the when statement. The more powerful
alternative to the if statement. Lastly, you will distinguish between statements and expressions,
two fundamental constructs in Kotlin, which differ in their usage and capabilities.
This lesson covers the following topics:
- the purpose of the
whenstatement, - how to branch your code,
- the difference between the statements and expressions.