Hello all,
I've made a function called inTable. It checks if a value is in a table. Returns true if it is. false if not:
Now, i want to improve it a bit. I want to be able to use placeholders like * and ?. Is this possible? Just the same placeholders like you have in File.Find
I've made a function called inTable. It checks if a value is in a table. Returns true if it is. false if not:
Code:
function inTable(table, value) local i = ""; local v = ""; for i, v in pairs(table) do if value == v then return true end end return false end
Comment