print("Hello Lua World!")
local value = 10 + 1
print(value)
if value > 0 then
print ('value is positive')
end
if value ~= 0 then
print("value is non zero")
end
if value == 11 then
print("value is 11")
end
local country = {"south korea", "UC","north"}
print(#country)
table.insert(country,"ckck")
print(country[4])
for i,v in ipairs(country) do
print(i,v)
end
for i =1, 5 do
print(i)
end
local car = {color = 'white', name = 'tesla'}
print(car['name'])
for k,v in pairs(car) do
print(k,v)
end
카테고리 없음