How would I make an "else if" argument in Lua? I'm trying to make a multi-stage conditional trigger to fill three different pipes or light any of three different pipes, based on the item I put inside them.
I haven't found any documentation on Lua's version of the old "elsif" to work with, and "elsif" doesn't seem to work.
alias: fillpipe *
if "%1" == "elm" then
Send "outr 1 elm"
Send "fill @elmpipe with elm"
else if "%1" == "valerian" then
Send "outr 1 valerian"
Send "fill @valerianpipe with valerian"
else if "%1" == "skullcap" then
Send "outr 1 skullcap"
Send "fill @skullcappipe with skullcap"
else
print "fillpipe with elm, valerian, or skullcap only."
end
I haven't found any documentation on Lua's version of the old "elsif" to work with, and "elsif" doesn't seem to work.