Just a quick question. Say I have a function, can I use tables in it's arguments?
Could a table that I defined earlier be passed in to a function?
function example(theTable)
end
local theTable = {"Hi","Bob","ScriptingHelpers"}
example(theTable)
If that works, I take it you could do
function example(theTable)
for i = 1,#theTable do
print(theTable[i])
end
end
local theTable = {"Hi","Bob","ScriptingHelpers"}
example(theTable)

2 comments
The table is formed after the function, yet the line calling the function sends the table to the function. It will work fine.
Please explain why the hell you are down-voting before just down-voting a real answer...