Board Thread:Lua Help/@comment-131168-20141029004938/@comment-131168-20141029012256

Here's another workaround that's better because it's invisible from the outside. If there's an = in there, frame.args[1] won't have anything. In which case, you can tell it to check the argument name and argument value that ARE there and reconnect them into the single string. I only saw pairs used in terms of loops, so I don't know if there's a simpler way to write this when we know there should only be one of each.

function p.test8(frame) TheInput = frame.args[1] or -1 if TheInput==-1 then for i,v in pairs(frame.args) do           TheInput= i .. "=" .. v       end end return TheInput end