Garry's Mod Wiki

Revision Difference

table.GetLastValue#560380

<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="629-L632">lua/includes/extensions/table.lua</file> <file line="651-L654">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>