Tin

Examples · learn/04-control · 96 of 339

if

examples/learn/04-control/if.tintin run examples/learn/04-control/if.tin
fn main() {
  let temperature = 31
  if temperature > 30 {
    print("hot")
  } else if temperature > 15 {
    print("mild")
  } else {
    print("cold")
  }
}