How to get all values from a array

Here is the table
local keys = { "test", "test2"}

here is what i tried

HELP said:(

GetEnumItems is not for tables. Do this

for key, value in ipairs(keys) do
   print(key, value)
end

how do i check if a textbox value is equal to an array?

Please be more specific. A full array? A single value in an array? A concatenated array?

like check if a player puts any of the values that are in an array in the textbox

local text = textbox.Text

for _, v in ipairs(array) do
   if text == v then
      print("Success")
      break
   end
end
1 Like

Think table.find would be a better alternative

2 Likes