Hasattrp(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
New page: Category:Functions {{Function|hasattrp(<object>, <attribute name>)}} Returns 1 if the object or its parent has the named attribute, and 0 if it does not. If the object does not exist...
 
(No difference)

Latest revision as of 07:30, 28 November 2010


hasattrp(<object>, <attribute name>)

Returns 1 if the object or its parent has the named attribute, and 0 if it does not. If the object does not exist or the player does not have the ability to examine the object, #-1 will be returned.

Use hasattr() to check for attributes without checking parents.