Global/IsValid

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Returns if an object is valid or not. (Such as {{Type|Entity}}s, {{Type|Panel}}s, custom {{Type|table}} objects and more)<br />Checks that an object is not nil, has an IsValid method and if this method returns true.
+
|Description=Returns whether an object is valid or not. (Such as {{Type|Entity}}s, {{Type|Panel}}s, custom {{Type|table}} objects and more)<br />Checks that an object is not nil, has an IsValid method and if this method returns true.
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Revision as of 07:34, 13 September 2016

 IsValid( )

Description

Returns whether an object is valid or not. (Such as Entitys, Panels, custom table objects and more)
Checks that an object is not nil, has an IsValid method and if this method returns true.

Arguments

any toBeValidated

The table or object to be validated.

Returns

boolean

True if the object is valid.
Personal tools
Navigation