User:IloveSuiseiseki/Sandbox

Creating a table
a = {"red","green"} Creates table with values "red","green"

Printing to console
print("red")

Concatenation
Couple Ways   table.concat(a,", ") Returns a string "red, green"  "red"..", ".."green" Returns a string "red, green" 

For loop
for i =1,#a do print(a[i]) end Prints all values of the table to the console. #a returns the size of the table. c = "" for k,v in ipairs(k) do c = c..k..", "..v.."\n" end Returns a string containing the keys and the values of the table. See http://http://www.luafaq.org/#T1.10 for differences between pairs and ipairs