Answers for "convert to string lua"

Lua
2

lua integer to string

print(tostring(5)) --Outputs: "5" as a string
Posted by: Guest on January-10-2021
-1

lua table to string

table.concat(list: table, sep: string, i: integer, j: integer)

local tbl = { 'Hello', 'World', 'this', 'is', 'awesome'}
print(table.concat(tbl, ' '))
-> Hello World this is awesome
Posted by: Guest on September-28-2020

Browse Popular Code Answers by Language