|
| 13 Dec 2013 11:09 AM |
| I need the script to check every string in a table to make sure none of them match another string. How can I do this? |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2013 11:20 AM |
local st = "random string"
tble = {"hello", "my", "name", "is", "bob"}
for _, v in pairs(tble) do if v ~= table then blablabla elseif v == table then print("oh nooo, we all gonna dieeee" end end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Dec 2013 11:40 AM |
| Okay, so it would check all of the tble items before running blablabla? |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2013 11:42 AM |
| Or would it run blablabla for every string that didn't match? |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2013 01:44 PM |
| It would run blablabla for every string that doesn't match. |
|
|
| Report Abuse |
|
|