Garry's Mod Wiki

Revision Difference

table.GetLastValue#551729

<function name="GetLastValue" parent="table" type="libraryfunc"> <description> <deprecated>Instead, index the table with the result of the length (#) operator, ensuring it is not zero. Non-numerically indexed tables are not ordered and do not have a last key.</deprecated> Returns the last value found in the given table </description> <realm>Shared and Menu</realm> <file line="618">lua/includes/extensions/table.lua</file> <file line="629-L632">lua/includes/extensions/table.lua</file> <args> <arg name="tab" type="table">Table to retrieve value from</arg> </args> <rets> <ret name="" type="any">Value</ret> </rets> </function>