table.Empty

From GMod Wiki

Jump to: navigation, search
Function
Syntax table.Empty( Table table )
Where is this used?
Description:
Empties a table.
Returns: nil
Part of Library: Table
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Table.Empty]Table.Empty [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionEmpty a table.
Used onNewerShared.png
Code
local test_table = {1, "1", Vector(5,2,1)}
table.Empty(test_table)
PrintTable(test_table)
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox