elseif lua
snippet in lua

lua if else

user1939

if bool then
	--code
else
	--code
end

elseif lua

user1900

    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