Module 2 of 5 in Learn the Kotlin Language

Utilize Control Flow in Kotlin

Share
Save for later

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

Module content

1
Branch Control Flow Lesson (14 mins)
IntroductionStart
Instruction
Demo
Conclusion
2
Leverage When Expressions Lesson (12 mins)
IntroductionStart
Instruction
Demo
Conclusion
3
Loop Code Lesson (16 mins)
IntroductionStart
Instruction
Demo
Conclusion
Quiz: Loop Code
4
Work with Null Values Lesson (16 mins)
IntroductionStart
Instruction
Demo
Conclusion

Next module

Android & Kotlin
Leverage Kotlin Functions & Lambdas
This module covers the basics of writing functions and then calling those functions in code. It also cover... more

Instructors

Contributors

Over 300 content creators. Join our team.