whenFlag

From OpenKore Wiki
Revision as of 22:34, 26 April 2021 by Conversion script (talk | contribs) (Conversion script moved page WhenFlag to whenFlag: Converting page titles to lowercase)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
whenFlag [<name>]
If this option is set, the block will only be used if a member of the %flags (%Globals::flags) hash with the specified name is set. This is useful to enable or disable a group of block options easily.
whenNotFlag [<name>]
If this option is set, the block will only be used if a member of the %flags hash with the specified name is not set. This is useful to enable or disable a group of block options easily.

Notes

Currently, only plugins or the eval console command could change %flags so this is only useful to developers.