G.PrintTable
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.PrintTable]G.PrintTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the table to your console. |
---|---|
Used on | |
Code | local tbl = { "Test1", "Test2", "Test3", "Test4", "Test5" } PrintTable( tbl ); |
Output | 1 = Test1 2 = Test2 3 = Test3 4 = Test4 5 = Test5 |
Additional Notes
- Works with multi-dimensional tables.
- Indent and done are arguments used internally which you should not generally be using.