Hasflag()

From TinyMUX
Revision as of 20:10, 4 December 2005 by Mark (talk | contribs) (Init)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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()