[DiscordArchive] if its global, how would i then make some other function run after executing it?
[DiscordArchive] if its global, how would i then make some other function run after executing it?
Archived author: Foe • Posted: 2022-04-21T14:08:44.486000+00:00
Original source
you can also use ipairs to loop tables sorted, as long as you have int keys
Archived author: Grandold • Posted: 2022-04-21T14:09:20.849000+00:00
Original source
sadly I might have "holes" between the keys so can't use that in my case
Archived author: Grandold • Posted: 2022-04-21T14:09:33.676000+00:00
Original source
but sort function will do it np
Archived author: Foe • Posted: 2022-04-21T14:10:19.382000+00:00
Original source
Yeah it's my biggest gripe with Lua tables, other than that they are so much easier to work with than table equivalents in other languages
Archived author: Grandold • Posted: 2022-04-21T14:11:03.627000+00:00
Original source
yeah just gotta think them as objects instead of tables and go from there
Archived author: Foe • Posted: 2022-04-21T14:11:09.794000+00:00
Original source
yup
Archived author: Foe • Posted: 2022-04-21T14:11:16.919000+00:00
Original source
pretty much Lua in a nutshell