Kotlin Control Flow

This category will contain all the tutorials related to Kotlin Control Flow statements.

if expression in Kotlin

In this tutorial, we will learn about if expression in Kotlin. In Kotlin “if” is not a keyword(as it was in Java). In Kotlin “if” is an expression and it returns a value. In mean ordinary “If expression” in Kotlin can work just like a ternary operator(condition ? then: else) of Java. Apart from this, we can also use “if-else” as simple blocks the same …

if expression in Kotlin Read More »

Scroll to Top