Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API SecureCmdOptionParse

Last wiki revision 2022-07-21

Evaluates macro conditionals without the need of a macro. result, target = SecureCmdOptionParse(options)

  • options: - a secure command options string to be parsed, e.g. "[mod:alt] ALT is held down; [mod:ctrl] CTRL is held down, but ALT is not; neither ALT nor CTRL is held down".
  • result: - value of the first satisfied clause in options, or no return (nil) if none of the conditions in options are satisfied.
  • target: - the target of the first satisfied clause in options (using either the or conditional), nil if the clause does not explicitly specify a target, or no return (nil) if none of the conditions in options are satisfied.
  • Note that item links cannot be part of options string as they contain square brackets [], which get interpreted by the parser as conditions.
  • This function is available in the RestrictedEnvironment, and is used to evaluate the options for secure macro commands.
  • Secure command options
  • SecureStateDriver

Source

https://warcraft.wiki.gg/wiki/API_SecureCmdOptionParse · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.