How do I check multiple variables at once?
Asked by
4 years ago Edited 4 years ago
So I have a table.
My goal is to get the variables inside the table and compare them to something such as a players name. How would I do this multiple times? As the variables are named the same thing.
all i've really got is this but it will only check the first name in the table and not the second, sorry if this is confusing. I've tried to explain as best I can.
1 | local table = { name = coolname, name = othercoolname } |
3 | if table.name = = something then |