WoW:API GetCVarDefault: Difference between revisions
No edit summary |
m (Move page script moved page API GetCVarDefault to API GetCVarDefault without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} __NOTOC__ | ||
Returns the default value of a console variable. | |||
value = GetCVarDefault("cvarName") | |||
== Arguments == | |||
;cvarName: String ([[CVar]]) - Name of the console variable to query. | |||
== Returns == | |||
;value: String - Default value of the console variable. | |||
== Notes == | |||
* Calling this function with an invalid variable name will cause an error. | |||
Latest revision as of 04:45, 15 August 2023
Returns the default value of a console variable.
value = GetCVarDefault("cvarName")
Arguments
- cvarName
- String (CVar) - Name of the console variable to query.
Returns
- value
- String - Default value of the console variable.
Notes
- Calling this function with an invalid variable name will cause an error.