The
elseif syntax will make it so the second part of the code will only run
if the previous if condition wasn't met.
So say you have
x = 5;
y = 10;
then you have such code:
Code:
if (x==5) then
print("x was 5");
elseif (y==10) then
print("y was 10");
end
Even though the second if "(y==10)" was true the code was never reached since the first
if statement was met when x equaled 5. The code would then print "x was 5" and then stop in that condition.
From what I understand you're trying to do 2 if statements like such:
Code:
if (hotkeyhide == 1) then
for i=1,12 do
actionButtonHotkey[i] = _G[format("ActionButton%dHotKey",i)];
end
end
if (macrohide == 1) then
for i=1,12 do
actionButtonHotkey[i] = _G[format("ActionButton%dName",i)];
end
end