Hasflag()

From TinyMUX
Jump to: navigation, search

Function: 20px-Function.png 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()