compare
compare(x, y)
Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.
Try it yourself:
$1 | compare(2, 3)
| |
$2 | compare(3, 2)
| |
$3 | compare(2, 2)
| |
$4 | compare(5cm, 40mm)
| |
$5 | compare(2, [1, 2, 3])
|