tbl = {}
print("enter first number:") entry1 = read()
print("enter second number:") entry2 = read()
print("enter third number:") entry3 = read()
print("enter fourth number:") entry4 = read()
entry = entry1..entry2..entry3..entry4
print("this is: 'entry1..entry2..entry3..entry4'")
print(entry)
tbl[1] = entry1
tbl[2] = entry2
tbl[3] = entry3
tbl[4] = entry4
entryt = tbl[1]..tbl[2]..tbl[3]..tbl[4]
print("this is: 'tbl[1]..tbl[2]..tbl[3]..tbl[4]'")
print(entryt)
print("tostring with key and value")
for k, v in pairs(tbl) do
print("key is:"..tostring(k).." value is:"..tostring(v))
end
a = entry
b = entryt
code = 1234
print("entry = "..entry)
print("entryt = "..entryt)
print("code = "..code)
if a == entry then print("a = entry")
else print("a ~= entry")
end
if b == entryt then print("b = entryt")
else print("b ~= entryt")
end
if a == b then print("a = b")
else print("a ~= b")
end
if a == code then print("entry = code")
else print("entry ~= code")
end
if b == code then print("entryt = code")
else print("entryt ~= code")
end
i apologize for what i'm sure is just a mess, but i'm just learning..... anyway when i run this and enter the numbers 1,2,3,and 4 into the table and try to concatenate them into one number, they don't equal the code variable, which is 1234.... can someone help me do this please? thanks for listening











