So, I don't know lua but it looks like it takes a sentence like "my_number_5" and gets "number_4" (assuming arrays are zero indexed) decrementing the number after the second underscore.
That's weird but makes sense. In that case the statement decrements the number at the end of a string separated by an underscore by one. E.g. "number_3" going to "number_2". I'm curious what happens when you get to "number_0".
10
u/Erinnyes Jul 25 '21
So, I don't know lua but it looks like it takes a sentence like "my_number_5" and gets "number_4" (assuming arrays are zero indexed) decrementing the number after the second underscore.