.. highlightlang:: us .. index:: lua_get .. _lua_get: lua_get ======= .. us.tag lua_get NOTREADYENGLISH Lua New5800 :ref:`lua_get` uses the rawget function to return a value from the Lua table. .. function:: val = lua_get(table, index) .. us.return **Return Value** *val* .. us.params **Parameters** .. uparam:: table *table* .. uparam:: index *index* .. us.comment **Comment** :: def lua_get(table, index) { return lua_call("rawget", table, index); } .. us.example **Example** :: lmath = lua_require("math") lsin = lua_get(lmath, "sin") .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2016.0 - New. .. seealso:: :ref:`overview-lua`, :ref:`Lua`, :ref:`lua_call`, :ref:`lua_set` :sub:`id-1872393`