table.GetFirstValue

From GMod Wiki

Jump to: navigation, search
Function
Syntax table.GetFirstValue( Table Table )
Where is this used?
Description:
Gets the first value in a table
Returns: Var
Part of Library: table
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Table.GetFirstValue]Table.GetFirstValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



DescriptionExample use of table.GetFirstValue
Used onNewerShared.png
Code
 
local Table = {}
Table["Testing"] = "1,2,3"
Table["Testing2"] = "4,5,6"
print(tostring(table.GetFirstValue(Table))
 
Output"1,2,3"
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox