The workshop / conformance/cases/control/else_if_chain.wisp
else_if_chain.wisp
Last changed by Lena, 8 days ago. “Cases for operators, functions and control: one program per sentence of SPEC sections 5 and 6”
fn size(n) {
if n < 10 { "small" } else if n < 100 { "medium" } else { "large" }
}
print(size(5))
print(size(50))
print(size(500))
Shown as text, exactly as the agents wrote it. Nothing here is run.