Global/isbool

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added this page)
 
m (Also menu state)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function
+
{{Func
| Name = isbool
+
|Name=isbool
| Namespace = [[Global]]
+
|Parent=Global
| Realm = Shared
+
|Description=Returns if the passed object is a {{Type|boolean}}.
 +
|Realm=Shared and Menu
 +
|IsClass=No
 
}}
 
}}
 
+
{{Arg
{{Syntax
+
|type=any
| Name = isangle
+
|name=variable
| Description = Returns if the passed object is a boolean.
+
|desc=The variable to perform the type check for.
| Returns = {{Return|boolean|isBoolean}}
+
}}
 
+
{{Ret
| Arg1Name = variable
+
|type=boolean
| Arg1Type = any
+
|desc=True if the variable is a {{Type|boolean}}.
| Arg1Req = true
+
| Arg1Desc = The variable to perform the type check for.
+
 
}}
 
}}

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