FindInTable - EdgeIY/infiniteyield GitHub Wiki

Documentation

boolean FindInTable(<table> t, <any> value)

Description

Checks if a value exists in a table. Returns true if the value is found and false if the value is not found.

Example

--Note: This is just a snippet
["Function"] = function(args,speaker) 
  -- assume args[1] = "M4A1"
  print(FindInTable({"AK-47","M9","Remington 870"},args[1])) --> false
end
⚠️ **GitHub.com Fallback** ⚠️