table.IsEmpty

From Garry's Mod
Jump to: navigation, search
 table.IsEmpty( )

Description

Returns whether or not the given table is empty.

This works on both sequential and non-sequential tables, and is a lot faster to use than
table.Count(tbl) == 0
.

Arguments

table tab

Table to check

Returns

boolean

Is empty
Personal tools
Navigation