Ok, from what I gathered from the manuals, you can define a function with a varying number of arguments like the example in the one manual:
but when I try something similar to that, 'arg' is always nil, what am I doing wrong?
printResult = ""
function print (...)
for i,v in ipairs(arg) do
printResult = printResult .. tostring(v) .. "\t"
end
printResult = printResult .. "\n"
end
but when I try something similar to that, 'arg' is always nil, what am I doing wrong?