G.type

From GMod Wiki

Revision as of 20:31, 17 September 2011 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax type( Var Variable )
Where is this used?
Description:
This function returns the type of the given argument.
Returns: String
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.type]G.type [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the type of the given argument.
Used onNewerShared.png
Code
print(type({"one","two"}))
OutputPrints 'table' to the console.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox