Boolean

Run Settings
LanguageKotlin
Language Version
Run Command
fun main(args : Array<String>){ val officeOpen = 7 val officeClosed = 16 val now = 20 val ini = 10 val isOpen = ini > officeOpen //hasil nya true if (!isOpen) { // !true (false) println("Office is closed") } else { println("Office is open") } // val isOpen = if (now >= officeOpen && now <= officeClosed){ // true // } else { // false // } // print("Office is open : $isOpen") val isOpen1 = now >= officeOpen && now <= officeClosed println("Office is open : $isOpen1") val isClose1 = now < officeOpen || now > officeClosed println("Office is close : $isClose1") }
Editor Settings
Theme
Key bindings
Full width
Lines