DM Reference

DM Ref

❯

operators

❯

<=> operator

<=> operator

Version 5161 min read

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
  • > operator
  • ⇐ operator
  • >= operator
  • == operator
  • operators
  • sorttextEx proc

Graph View

  • Format
  • Returns
  • See also

Backlinks

  • == operator
  • < operator
  • <= operator
  • operators
  • > operator
  • >= operator

Discord Bot

Look up reference entries and run DreamMaker code directly in Discord.

Add to DiscordOpen Playground

Built for BYOND 516.1688

Created with Quartz v4.5.0 © 2026

  • GitHub