Mobile App Development - Kotlin

Back to Course

Lesson Description

Lession - #392 Kotlin Booleans

A boolean type can be declared with the Boolean keyword and can take the values true or false

Let's see an example

val isKotlinFun: Boolean = true
  val isFishTasty: Boolean = false
// Outputs true println(isFishTasty>
// Outputs false


Try it here