Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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.
Patch changes[]
Patch 8.1.5 (2019-03-12): Namespaced to C_CVar.GetCVar()
.
Patch 1.0.0 (2004-10-08): Added.