Garry's Mod Wiki

Revision Difference

table.IsEmpty#517506

<function name="IsEmpty" parent="table" type="libraryfunc"> <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 &amp;lt;pre class="inline"&amp;gt;table.Count(tbl) == 0&amp;lt;/pre&amp;gt;. This works on both sequential and non-sequential tables, and is a lot faster to use than `table.Count(tbl) == 0`. </description> <realm>Shared and Menu</realm> <args> <arg name="tab" type="table">Table to check</arg> </args> <rets> <ret name="" type="boolean">Is empty</ret> </rets> </function>