lua Code:
local testing1 = true
local testing2 = true
SLASH_TEST1 = "/test"
SlashCmdList["TEST"] = function(msg)
msg = string.lower(msg)
if (msg == "testing1") then
if testing1 then
testing1 = false
print("testing1 set to false")
else
testing1 = true
print("testing1 set to true")
end
elseif (msg == "testing2") then
if testing2 then
testing2 = false
print("testing2 set to false")
else
testing2 = true
print("testing2 set to true")
end
end
end