9951 explained code solutions for 126 technologies


luaHow to use else...if


if a == 1 then
  -- do
elseif a == 2 then
  -- also do
else
  -- don't do
endctrl + c
if a == 1 then

first condition to check

elseif a == 2 then

alternate condition to check

end

end of if block