iteration

This commit is contained in:
2023-10-08 05:19:07 -04:00
parent 2114e16af9
commit 1fe688e287
2 changed files with 18 additions and 1 deletions

View File

@ -49,6 +49,23 @@ function check_user_group(username, group)
end
end
function trueKeysToString(tbl)
local result = ""
local first = true
for key, value in pairs(tbl) do
if value == true then
if not first then
result = result .. ", "
else
first = false
end
result = result .. key
end
end
return result
end
function list_to_string(list)
local str = ""