Skip to content

Instantly share code, notes, and snippets.

@codinginflow
Created February 15, 2021 02:10
Show Gist options
  • Save codinginflow/e9bfd964fe0743bbc82617ddd2925804 to your computer and use it in GitHub Desktop.
Save codinginflow/e9bfd964fe0743bbc82617ddd2925804 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 11
fun main() {
println("2 > 1 is ${2 > 1}")
println("2 < 1 is ${2 < 1}")
println("1 >= 1 is ${1 >= 1}")
println("1 == 1 is ${1 == 1}")
println("1 == 2 is ${1 == 2}")
println("1 != 2 is ${1 != 2}")
println("!(2 > 1) is ${!(2 > 1)}")
println("true && false = ${true && false}")
println("true || false = ${true || false}")
val condition = (2 > 1) || (3 > 2) && (2 > 3)
println(condition)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment