C_CVar.GetCVar

From Wowpedia
Jump to: navigation, search

Returns the current value of a console variable.

value = C_CVar.GetCVar("name")

Arguments

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

Returns

value 
string (nilable) - 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

Retail

Classic

See also