Lua help

Post Reply
Narnai
Posts: 7
Joined: Fri Mar 20, 2015 9:35 am

Lua help

Post by Narnai »

I'm stuck with trying to concatenating a table.

table.concat doesn't seem to want to use \n (new line) as a delimiter. Is there a workaround?

Thanks.

User avatar
demonnic
Posts: 676
Joined: Sat Dec 05, 2009 3:19 pm

Re: Lua help

Post by demonnic »

It seems to be working for me. ` is my lua alias:
` testTable = { "one", "two", "three" }
` echo(table.concat(testTable, "\n"))
one
two
three

Post Reply