Fifth_5
(Fifth_5)
February 21, 2022, 9:36pm
#1
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
Here’s the result i’d like to get.
Any help would be very much appreciate as i’m not super familiar w string manipulation
Blockzez
(Blockzez)
February 21, 2022, 9:44pm
#2
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
Fifth_5
(Fifth_5)
February 21, 2022, 9:50pm
#3
Exactly what I need. I appreciate it