table.Empty

From Garry's Mod
Revision as of 22:47, 30 July 2016 by Zerf (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 table.Empty( )

Contents

Description

Removes all values from a table.

Arguments

table tbl

The table to empty.

Examples

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
Personal tools
Navigation