G.type

From GMod Wiki

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