Orflags()

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


FUNCTION: orflags(<object>,<list of flags>)

This function returns 1 if <object> has at least one of the flags in a specified list, and 0 if it does not. The list is specified with a single letter standing for each flag, like the output of the flags() function. A '!' preceding a flag letter means "not flag".

Thus, orflags(me,Wr) would return 1 if I were set WIZARD or ROYALTY. orflags(me,D!c) would return 1 if I were DARK or not CONNECTED.

If a letter does not correspond to any flag, <object> doesn't have it, so it is simply ignored. There can be an arbitrary number of flags. Do not put spaces between flag letters.

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