If else

Run Settings
LanguageKotlin
Language Version
Run Command
fun main(args : Array<String>){ val openHours = 7 val now = 7 val office : String /* if(now > openHours){ office = "Office already open" } else{ office = "Office already closed" } print(office)*/ //use if else office = if (now > openHours){ "Office already open" } else if(now == openHours){ "Wait a minute office will be open" } else{ "Office is close" } print(office) }
Editor Settings
Theme
Key bindings
Full width
Lines