I have tried tonumber for numbers but that would work with "3" etc and i also tried if n/4 then but that crashed the code :l
Please help
Posted 04 January 2013 - 10:18 PM
Posted 04 January 2013 - 10:41 PM
local a = 1 print(type(a)) -- will print number
Posted 04 January 2013 - 10:42 PM
t = { var= 3, state= true, message = "Hello, I am a string" }
for i, v in pairs(t) do
print(i .. " is " .. v .. " which is a " .. type(v))
end
Posted 04 January 2013 - 10:48 PM
0 members, 1 guests, 0 anonymous users