if else
zo / basic
program
fun main() { imu hour: int = 14; if hour < 12 { showln("good morning"); } else if hour < 18 { showln("good afternoon"); } else { showln("good evening"); } imu temperature: int = 30; imu label: str = if temperature >= 25 { "hot" } else { "mild" }; showln(label); }
output
good afternoon hot