In my opinion there is nothing wrong with an if-ex...
# getting-started
d
In my opinion there is nothing wrong with an if-expression:
Copy code
val result = if (var != null) {
    valueForNonNull
} else {
    valueForNull
}