.. highlightlang:: us .. index:: lua_set .. _lua_set: lua_set ======= .. us.tag lua_set NOTREADYENGLISH Lua New5800 :ref:`lua_set` is using the Lua rawset function to set a value in a Lua table. .. function:: ret = lua_set(table, index, value) .. us.return **Return Value** *ret* .. us.params **Parameters** .. uparam:: table *table* .. uparam:: index *index* .. uparam:: value *value* .. us.example **Example** :: // create empty table table = lua_eval("return {}") // write values lua_set(table, 1, 123) lua_set(table, 2, 456) lua_set(table, "nr", 2) lua_str(table) { 123, 456, nr = 2 } .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2016.0 - New. .. seealso:: :ref:`overview-lua`, :ref:`Lua`, :ref:`lua_call`, :ref:`lua_get` :sub:`id-628530`