How would I check a var against everything in a table?
Table help
Started by Sammich Lord, Sep 16 2012 09:50 PM
2 replies to this topic
#1
Posted 16 September 2012 - 09:50 PM
#2
Posted 16 September 2012 - 09:57 PM
What exactly do you mean?
A conditional to check the values of a table??
A conditional to check the values of a table??
table_name = { {value = "chicken"} }
for k, v in pairs(table_name) do
if v.value == "chicken" then
print("CHICKEN")
end
end
#3
Posted 17 September 2012 - 06:59 AM
Thanks man.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











