WoW:API rawset: Difference between revisions

53 bytes removed ,  15 August 2023
m
Move page script moved page API rawset to WoW:API rawset without leaving a redirect
m (Robot: converting/fixing HTML)
m (Move page script moved page API rawset to WoW:API rawset without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{LUA}}
{{luaapi}}
 
Assigns a value to a key in the table, without invoking [[metamethod]]s.
== Usage ==
 
This function does the same as table[index] = value, without invoking any [[metamethod]]s.
 
  table = rawset (table, index, value)
  table = rawset (table, index, value)


== Parameters ==
== Arguments ==
=== Arguments ===
;table : table - any valid table.
:;table : table - any valid table.
;index : non-nil - any valid table index.
:;index : numeric - any valid table index.
;value : any - any value.
:;value : any - any value.


==Returns==
==Returns==
:;table : table - the table you passed as the first parameter.
;table : table - the table you passed as the first parameter.


== Example ==
== Example ==
Anonymous user