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.
|