G.PrintTable

From GMod Wiki

Revision as of 15:20, 11 October 2010 by Freze (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax PrintTable( Table table [,Integer indent, Table done] )
Where is this used?
Description:
Prints a visual table to the console.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.PrintTable]G.PrintTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the table to your console.
Used onNewerShared.png
Code
local tbl = {
	"Test1",
	"Test2",
	"Test3",
	"Test4",
	"Test5"
}
 
PrintTable( tbl );
Output
1    =    Test1 
2    =    Test2 
3    =    Test3 
4    =    Test4 
5    =    Test5 
 


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox