Search⌘ K

The if Expression

Learn how the if statement of Java is actually an if expression in Kotlin.

The behavior of if in Kotlin

In Kotlin, if is not just a statement (as ...