View Single Post
06/23/14, 12:26 AM   #3
farangkao
 
farangkao's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 59
And remember you can safeguard your code

if Imperialization.savedVariables then
if Imperialization.savedVariables.ConvertOnEquip then
-- do your stuff
end

else
d("Error No Saved Variables here")
end




When you do a test like "if <variable> then" ,the code will only run if the variable is not nil or not false (nil = means not initialized)

Last edited by farangkao : 06/23/14 at 12:39 AM.
  Reply With Quote