Say I want to add a value to a table.
table = {}
table.insert(table, "remove me")
table.insert(table, "keep me")
table.insert(table, "1")
table.insert(table, "3")
Now I want to remove a certain value from a table.(pretend I don't know the order of the table)
for i, v in pairs(table) do
if table[i] == "remove me" then
table.remove(table, i)
end
end

1 comment
INTERESTING