How to use if else in Kotlin? | Kotlin if else expressions

preview_player
Показать описание
If Statements, If Else Statements, Else If, and If Else Expressions in Kotlin!
In this video, you're going to learn how to use if then else in Kotlin. Firstly, we're going to discuss normal if else statements. Then, we'll continue with else if to check for further conditions in the else block. Finally, you'll see how to use if else expressions to concisely assign variables in Kotlin.

00:00 Intro
00:25 If Else Statements
01:08 If Else Statement Example
01:59 Else If Statement Example
02:44 Motivation for If Else Expressions
03:25 If Else Expression Example

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

Please share your thoughts and feedback in the comments! And, of course, tell me the topics you want me to explain in future videos 😉

ldickmanns
Автор

Really like your tutorials - many thanks!! Lambda and annotations would be great!

frankjacobs