1val apples = 3
2val oranges = 5
3val fruitSummary = "I have ${apples + oranges} " +
4 "pieces of fruit."
5
1val label = "The width is "
2val width = 94
3val widthLabel = label + width
4// The width is 94
1// if is an expression, so ternary operation not needed
2val loaded = true
3val status = if (loaded) "Ready" else "Loading..."
4// "Ready
1val age = 42
2
3if (age < 10) {
4 println("You're too young to watch this movie")
5} else if (age < 13) {
6 println("You can watch this movie with a parent")
7} else {
8 println("You can watch this movie")
9}