In lua (obviously) I am trying to make a table with the following structure (variable length):
local myTable = {
{"Alice", "1234"},
{"Bob","3242"}
}
Now say we have variable foo which is a string that could equal "alice", "bob" or neither. If foo="Alice" it should return "1234" and "bob" returns "3242", neither returns some predefined string like "ERROR".
How would I implement this?