Hasflag()

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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