C_CVar.GetCVar

From Warcraft Wiki
(Redirected from API GetCVar)
Jump to navigation Jump to search
Flavors
Links
Patch
Added in 8.1.5 / 2.5.1 / 1.14.0

Returns the current value of a console variable.

value = C_CVar.GetCVar(name)
      = GetCVar

Arguments

name
string : CVar - name of the CVar to query the value of.

Returns

value
string? - current value of the CVar.

Details

  • Calling this function with an invalid variable name, or a variable that cannot be queried by AddOns (like "accountName"), will return nil.

See Also

Patch changes