Elseif lua

This article is tagged with: Elseif lua and lua

elseif lua

if op == "+" then
r = a + b
elseif op == "-" then
r = a - b
elseif op == "*" then
r = a*b
elseif op == "/" then
r = a/b
else
error("invalid operation")
end

This article is tagged with: Elseif lua and lua