From bde8199e4b83d838d560c3fa7bb66cde45d7ad90 Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 25 Feb 2017 12:48:31 -0500 Subject: add chr() and ord() buildins --- doc/script_commands.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index a0e3a783d..1737f8796 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -8046,6 +8046,26 @@ Example: --------------------------------------- +*chr() + +Returns a char from its ASCII value. + +Example: + + chr(99); //returns "c" + +--------------------------------------- + +*ord() + +Returns the ASCII value of char . + +Example: + + ord("c"); //returns 99 + +--------------------------------------- + *setchar(, , ) Returns the original string with the char at the specified index set to -- cgit v1.2.3-60-g2f50