summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-07-11 11:52:06 +0200
committerGitHub <noreply@github.com>2017-07-11 11:52:06 +0200
commit9e9ef5d1f8265fc31128f557d3a6b520baa5e133 (patch)
treea1382e88c3c2f28bbd1c246ff16937c9a354ae38 /doc
parent94990c64c300c9b72509ec3cc9082538ef7105bf (diff)
parent2623a35e451a463f4be14638b37bc294d08094a1 (diff)
downloadhercules-9e9ef5d1f8265fc31128f557d3a6b520baa5e133.tar.gz
hercules-9e9ef5d1f8265fc31128f557d3a6b520baa5e133.tar.bz2
hercules-9e9ef5d1f8265fc31128f557d3a6b520baa5e133.tar.xz
hercules-9e9ef5d1f8265fc31128f557d3a6b520baa5e133.zip
Merge pull request #1788 from mekolat/type2
new buildin: getdatatype()
Diffstat (limited to 'doc')
-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