Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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 when statement,
  • how to branch your code,
  • the difference between the statements and expressions.
See forum comments
Download course materials from Github
Previous: Quiz: Branch Control Flow Next: Instruction