FANDOM


$ASCII(str, index = 1)

Returns the ASCII code of the indexth character in str, or -1 if str doesn't have an indexth character.

$ASCII("ABC123") -> 65

$ASCII("ABC123", 4) -> 49

$ASCII("ABC123", 7) -> -1

The inverse of this function is $CHAR