Table to string help

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a table convert into a string

  2. What is the issue? Include screenshots / videos if possible!
    The issue is I dont know how to do it
    Here is something i would like to do image
    And turn this into Hello World

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I looked in the developer hub but it was sorta confusing

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This the code:

if  getHighestNumber(TAB) then
	local high =  getHighestNumber(TAB) 

	
	for r = MinNum , high do
		print(TAB)
		
		local str = TAB[r]
		print(str)
	
		

	end
end
local someTable = {"a", "b", "c"}
local tableString = table.concat(someTable) --returns "abc"

table.concat() concatenates all of the elements within an array and returns a single string value.

1 Like

Thank you im not used to using concat so its great that you explained it. Thank you again : )

You can also use this, the benefit of it is that you can convert into string not only array but even dictionary.

3 Likes