Normal to use table.remove you would have to use use the number placement of that item, is there a way to do it with its name? Like this:
names = {"Hi","Bye"}
table.remove(names, "Bye") --This doesn't work of course
Normal to use table.remove you would have to use use the number placement of that item, is there a way to do it with its name? Like this:
names = {"Hi","Bye"}
table.remove(names, "Bye") --This doesn't work of course
table.remove is a function with two specific arguments: the table, and it's numeric index (implying it must be an array).
I've given a very detailed explanation on this, where you can find here: https://scriptinghelpers.org/questions/22565/tableinsert-and-tableremove#26210
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Ok I got it, I can just set the order of the table then remove it. Thanks!