Garry's Mod Wiki

table.Empty

table.Empty

  table.Empty( table tbl )

Description

Removes all values from a table.

Arguments

1 table tbl
The table to empty.

Example

Demonstrates the use of this function.

local Table = {"String Value", "Another value", Var = "Non-integer key"} table.Empty(Table) print( table.Count(Table) )
Output: 0

Special Pages


Wikis

?

Render Time: 67ms

DB GetPage 51
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 7