Hi
I have litle problem with tables
i can do it by "elseif' but it will be more than 100 "elseifs" :/
if matches[3] == "meat" then
xsxsxs = "banana"
echo("" .. xyz .. "" .. xxyz .. "" .. xsxsxs .. "]")
happyJaneTable = { "meat", "burger", "steak", "hamburger", "chickenburger" }
sadisJaneTable = { "banana", "apple", "orange", "pear", "grape" }
moddyJaneTable = { "xxx", "yyy", "ccc", "bbb", "aaa" }
You see meat.
send("eat banana")
You see burger.
send("eat apple")
You see Burger.
send("eat apple")
You see meat.
send("eat xxx")
Finding value in tables problem
Re: Finding value in tables problem
So...you are going to have to explain a bit more on what you want to be doing exactly. Just by the looks of it though, you might want to try changing your table.
And like wise you can check through them like so.
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Re: Finding value in tables problem
Thak you