Kotlin IF as Expression. Kotlin Tutorials for Android #5.1

preview_player
Показать описание

Kotlin tutorial for beginners. We can use IF statements as EXPRESSION that returns a value. Lets explore it.

.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)

Free Programming courses:

Free Flutter course:

Free Android courses:

More free programming courses:

Check out my website:

Let's get in touch! [Sriyank Siddhartha]

---- Thank you for your love and support ----
Рекомендации по теме
Комментарии
Автор

After searching for past 2 day I found many video and watched many of them but none of them understand as good as you taught in the whole kotlin series

ankitvishwakarma
Автор

You might have it in another video but you seem to have skipped the construct
when {
x == 1 -> print(x)
x+y>5 => ...
}

yonatanmyers
Автор

I think there is a major issue with assigning the result of control flow to a variable. In fact, you are initializing a variable, and that should be. With an if statement, however, you could run additional code like calling a function like print, which is not really related to the initialization of the variable. I dont like this language feature. But the video is great as always

developerios
Автор

nice explaination, I think tutorial name is 6.1 and not 5.1

revansiddappakalshetty
Автор

after 4.5 to 5 lecture is not available

MegaKeshari
visit shbcf.ru