Skip to content

Instantly share code, notes, and snippets.

@sudipto80

sudipto80/ifExpr.kt

Created Dec 12, 2018
Embed
What would you like to do?
package hello
fun main() {
var x = 11
var y = if (x > 10) { println("Hey!"); ":Kotlin"} else
{
println("NO!")
"OUCH!"
}
println(y)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment