Math & Text
localeCompare
$localeCompare — Compares two texts: -1, 0 or 1.
Compares two texts: -1, 0 or 1.
Syntax
$localeCompare[first;second]
Parameters
- first (text, required) — First text.
- second (text, required) — Second text.
Return Value
- string.
Usage
$localeCompare[a;b] → "-1"
Example
$sendMessage[$localeCompare[a;b]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.