In this lesson, you'll learn how to use the Elvis operator in Kotlin: ?:
This operator helps short circuit your code path so that when your variable is null, another statement can execute.
Watch the entire FREE Kotlin Programming course here: https://www.youtube.com/watch?v=887MNv283dc&list=PLVUm4IewkTXqwzuRXZisWg7shMTiQhUtz
This operator helps short circuit your code path so that when your variable is null, another statement can execute.
Watch the entire FREE Kotlin Programming course here: https://www.youtube.com/watch?v=887MNv283dc&list=PLVUm4IewkTXqwzuRXZisWg7shMTiQhUtz
- Category
- Elvis Presley
Commenting disabled.