local t = {"a", "b", "c", "d", "e"} print(table.find(t, "d")) -- 4 print(table.find(t, "z")) -- nil, because z is not in the table print(table.find(t, "b", 3)) -- nil, because b appears before index 3