grapes-less-than-equals-greater-than-grapes: Three-way operator

Description Usage Arguments Value Examples

Description

A three-way comparison takes two values A and B determines whether A < B, A = B, or A > B in a single operation.

Usage

1
lhs %<=>% rhs

Arguments

lhs

Left hand side operator

rhs

Rand hand side operator

Value

Greater value or zero if equal.

Examples

1
2
3
1 %<=>% 2
2 %<=>% 1
3 %<=>% 3

konradedgar/KEmisc documentation built on April 15, 2021, 1:50 p.m.