Global/isbool

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
 
(2 intermediate revisions by one user not shown)
Line 2: Line 2:
 
|Name=isbool
 
|Name=isbool
 
|Parent=Global
 
|Parent=Global
|Description=Returns if the passed object is a boolean.
+
|Description=Returns if the passed object is a {{Type|boolean}}.
|Realm=Shared
+
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
 
}}
 
}}
Line 10: Line 10:
 
|name=variable
 
|name=variable
 
|desc=The variable to perform the type check for.
 
|desc=The variable to perform the type check for.
 +
}}
 +
{{Ret
 +
|type=boolean
 +
|desc=True if the variable is a {{Type|boolean}}.
 
}}
 
}}

Latest revision as of 17:13, 10 July 2016

 isbool( )

Description

Returns if the passed object is a boolean.

Arguments

any variable

The variable to perform the type check for.

Returns

boolean

True if the variable is a boolean.
Personal tools
Navigation