typst/tests/typ/math/cases.typ
2023-02-02 14:13:56 +01:00

10 lines
143 B
XML

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