# <=> operator

Source: https://ref.dm-lang.org/operator/lessequalsgreater
Added in BYOND 516.

### Format
> `A <=> B`

### Returns
> \-1 if A is less B; 1 if A is greater than B; 0 otherwise.

If A and B are text strings, a case sensitive comparison is performed (like sorttextEx()).

If either value is the special number NaN (not a number), the result is currently 0 but should be considered ambiguous.

### See also
- [\< operator](https://ref.dm-lang.org/operator/less.md)
- [\> operator](https://ref.dm-lang.org/operator/greater.md)
- [\<= operator](https://ref.dm-lang.org/operator/lessequals.md)
- [\>= operator](https://ref.dm-lang.org/operator/greaterequals.md)
- [== operator](https://ref.dm-lang.org/operator/equalsequals.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
- [sorttextEx proc](https://ref.dm-lang.org/proc/sorttextEx.md)
