WoW API: GetCVarDefault

WoW API < GetCVarDefault

Returns the default value of a console variable.

value = GetCVarDefault("cvarName")

ArgumentsEdit

cvarName
String (CVar) - Name of the console variable to query.

ReturnsEdit

value
String - Default value of the console variable.

NotesEdit

  • Calling this function with an invalid variable name will cause an error.