ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:notflag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
functions:notflag [2017/07/15 15:31] – created korshunfunctions:notflag [2017/07/15 16:33] korshun
Line 4: Line 4:
 ===== Description ===== ===== Description =====
 Returns true if the given flag is **not** set in ''allflags''. Shorthand for ''!(allflags & flag)''. Returns true if the given flag is **not** set in ''allflags''. Shorthand for ''!(allflags & flag)''.
 +
 +===== Examples =====
 +<code>
 +if (notflag(flags, FLAG_NOSOMETHING))
 +{
 +    DoSomething();
 +    ...
 +}
 +</code>
functions/notflag.txt · Last modified: 2017/07/15 16:33 by korshun