Advertisement
BobMe

string comma separator thing

Sep 18th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. local g = {"kek","heck","seck","mecc","fleck","peck"}
  2.  
  3. local kek = ""
  4. for i=1,#g do
  5. if i ~= #g and i ~= 1 then
  6. kek = kek..", "..g[i]
  7. else
  8. kek = kek..g[i]
  9. end
  10. end
  11. print(kek)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement