Help with string manipulation

Hello, currently I’m making a round system & im trying to setup the winners to where it includes an & for the last entry.

Here’s what i have right now using basic concatenation
1

Here’s the result i’d like to get.
2

Any help would be very much appreciate as i’m not super familiar w string manipulation :slight_smile:

You can use table.concat from 1 to (and including) n - 1 with "," as the separator.
Concatenate that, " & ", and the index n of the table - in this order.

https://www.lua.org/manual/5.1/manual.html#pdf-table.concat

1 Like

Exactly what I need. I appreciate it :slight_smile: