myTable = {{"hello1","hello2"}, {"Wasup?1", "Wasup?2"}} function find(t, value) local newObject = nil table.foreach(t, function(num, item) table.foreach(item, function(numeration, object) if object == value then newObject = object end end) end) return newObject end print(find(myTable, "hello1"))