Pattern Matching

Use match expressions for clean conditional logic.

The `match` expression works like a switch statement, but it's an expression — it returns a value. Use `=>` to separate patterns from results.

Loading WASM...

Sloplang has a powerful **cond-style match** — a `match` with no value that checks conditions top to bottom. This is perfect for FizzBuzz-style logic.

Loading WASM...

Match works with enums and destructuring, letting you pull data out of tagged values.

Loading WASM...

You are not logged in.