Hasflag(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
Mark (talk | contribs)
Init
 
(No difference)

Latest revision as of 20:10, 4 December 2005

Function: hasflag(<object>[/<attribute>],<flag>)

Returns true if <object> has the flag named <flag> set on it. You may not be able to retrieve information for objects that you do not own.

With an object-attribute pair, this can also be used to check for the attribute flags "dark", "hidden", "html", "visual", "no_command", "no_inherit", "no_parse", "locked", "wizard", and "god".

Example

   > say hasflag(me, wizard)
   You say "0"
   > say hasflag(me, connect)
   You say "1"

Related Topics: Flag, andflags(), orflags(), flags()