summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index e0e9646cd..d72d1d4b7 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -8337,6 +8337,30 @@ Example:
---------------------------------------
+*getdatatype(<argument>)
+
+This command returns the raw type of the given <argument>. Unlike
+isstr, this command does not evaluate the argument. The returned type
+is bitmasked.
+
+types include:
+
+ DATATYPE_NIL
+ DATATYPE_STR
+ DATATYPE_INT
+ DATATYPE_CONST
+ DATATYPE_PARAM
+ DATATYPE_VAR
+ DATATYPE_LABEL
+
+Example:
+
+ getdatatype() // DATATYPE_NIL
+ getdatatype("foo") // DATATYPE_STR
+ getdatatype(@foo$) // (DATATYPE_VAR | DATATYPE_STR)
+
+---------------------------------------
+
*charisalpha("<string>", <position>)
This function will return true if the character number Position in the given