Posted 23 March 2013 - 12:15 PM
if i have a table like this
t = {"h","i"}
how do i turn that into
"hi"
?
t = {"h","i"}
how do i turn that into
"hi"
?
local str = ''
for i=1, #t do
str = str .. t[i]
end
print(str) --> hi
local str = table.concat(t)
print(str) --> hi
local str = table.concat(t, ',')
print(str) --> h,i