Kotlin Ternary Conditional Operator -


what equivalent of expression in kotlin?

a ? b : c 

this not valid code in kotlin.

in kotlin, if statements expressions. following code equivalent:

if (a) b else c 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -