Quantcast WoWInterface - View Single Post - [Request] Macro to toggle sound
View Single Post
07-02-11, 08:30 AM   #11
A Molten Giant
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 847
Originally Posted by SDPhantom View Post
GetCVar() has always acted this way. Blizzard later created GetCVarBool() that returns CVars stored as "0" and "1" as a boolean.
If I remember correctly, GetCVar used to return "0" instead of just a nil, breaking the following example ..
/run SetCVar("Sound_EnableSFX", 1-GetCVar("Sound_EnableSFX"))
I can remember that the above example script used to work, but not anymore now
  Reply With Quote