table.GetLastValue

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

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

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

table tab

Table to retrieve value from

Returns

any

Value
Personal tools
Navigation