1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
function oops(ill) if ill then std.error("something went wrong", nil) else "it works!" end end function handle() let first = oops(false)? std.print(first) let second = oops(true)? std.print(second) end