typst/tests/typ/math/cases.typ
2023-02-02 19:50:06 +01:00

10 lines
146 B
XML

// Test case distinction.
---
$ f(x, y) := cases(
1 quad &"if" (x dot.op y)/2 <= 0,
2 &"if" x divides 2,
3 &"if" x in NN,
4 &"else",
) $