Garry's Mod Wiki

Revision Difference

table.Empty#551722

<function name="Empty" parent="table" type="libraryfunc"> <description>Removes all values from a table.</description> <realm>Shared and Menu</realm> <file line="45-L53">lua/includes/extensions/table.lua</file> <file line="53-L57">lua/includes/extensions/table.lua</file> <args> <arg name="tbl" type="table">The table to empty.</arg> </args> </function> <example> <description>Demonstrates the use of this function.</description> <code> local Table = {"String Value", "Another value", Var = "Non-integer key"} table.Empty(Table) print( table.Count(Table) ) </code> <output>0</output> </example>