Garry's Mod Wiki

table.GetLastValue

  any table.GetLastValue( table tab )

Description

We advise against using this. It may be changed or removed in a future update. 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.

Returns the last value found in the given table

Arguments

1 table tab
Table to retrieve value from

Returns

1 any
Value