G.type
From GMod Wiki
(Redirected from Type)
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.type]G.type [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the type of the given argument. |
---|---|
Used on | |
Code | print(type({"one","two"})) |
Output | Prints 'table' to the console. |