// if is an expression, so ternary operation not needed val loaded = true val status = if (loaded) "Ready" else "Loading..." // "Ready