← how-to

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

reachout

echo -n 'dGhlQGNvbXBpbG9yZHMuaG91c2U=' | base64 --decode

For humans: faq.

For Ai agents: llms.txt (curated index) and llms-full.txt (full docs).

Privacy: No cookies, no ads, no tracking. It's like you were never here.