.. highlightlang:: us .. index:: lua_type .. _lua_type: lua_type ======== .. us.tag lua_type NOTREADYENGLISH Lua New5800 :ref:`lua_type` returns the type of a Lua value as a string, see :ref:`lua-func-type`. .. function:: ret = lua_type(luaValue) .. us.return **Return Value** *ret* is one of the following strings: "``nil``", "``number``", "``string``", "``boolean``", "``table``", "``function``", "``thread``", "``userdata``". .. us.params **Parameters** .. uparam:: luaValue *luaValue* .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2016.0 - New. .. seealso:: :ref:`overview-lua`, :ref:`Lua`, :ref:`lua_call` :sub:`id-315195`