The `if` statement in Kotlin is an expression that returns a value. Therefore, there is no ternary operator (`condition ? then : else`) because the `if` statement works well in this role. Branches of an `if` expression can be blocks.
More information:
https://www.udemy.com/course/fundamen...
If you would like a discount coupon for this course, visit:
http://alainnicolastello.com/
My learning path:
http://alainnicolastello.com/#/aprend...
Courses on various technologies, including Android, at Frogames Training: https://cursos.frogamesformacion.com/...
Access to over 80 premium courses, more info. Here:
https://itoo.dev/p/pack-super-premium...
Android Pack, Firebase with MVP + Material Design UX/UI:
https://itoo.dev/p/pack-android-fireb...
Direct links to some of my free courses:
Android Fundamentals:
https://www.udemy.com/fundamentos-de-...
Android Studio + Git and more:
https://www.udemy.com/android-studio-...
Firebase for Android:
Material Design for Android:
https://itoo.dev/p/minicurso-material...
Follow me on my social media:
/ cursosandroidant
/ alain_nt
/ alain-nicol%c3%a1s-tello-aa4a25bb