if x == 0: foo() elif x == 1: bar() elif x == 2: baz() else: qux() match x: 0 => foo() 1 => bar() 2 => baz() _ => qux() (a) ? b : c