Hello World function hello() localtable = {"h", "e", "l", "l", "o"} local hello = "" for _, c in ipairs(table) do hello = hello .. c end return hello end print(hello(), "world")
29.
数値型・文字列・ブール型 a = 1 b= (a + 1) * 2 c = b / 3 -- c = 1.33333333... d = "string" e = f .. "string" -- e = "stringstring" f = e + 3 -- ERROR g = "1" + "2" -- g == 3, type(j) == "number" h = true or false -- true i = true and false -- false