...

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
  println(isKotlinFun>
// Outputs true println(isFishTasty>
// Outputs false



Output



Try it here