Skip to main content

Utilize Control Flow in Kotlin

Read on original site

Module 2 of 6 in Learn the Kotlin Language Learning Path

Module outcomes:

  • Branch code based on variable state using by either if or when statements
  • Conditionally setup variables
  • Use the various looping constructs to perform repetitive tasks

Covered concepts:

  • If / When keywords
  • Branching logic
  • For / repeat loops
  • Break / continue in loops
  • Null operators
  • Elvis operator