Module:Cargo Utility: Difference between revisions
Created page with "local util_args = require('Module:Args Utility') local util_map = require('Module:Map Utility') local util_table = require('Module:Table Utility') local util_text = require('M..." |
pull newest store version |
||
Line 259: | Line 259: | ||
end | end | ||
if not tbl then return end | if not tbl then return end | ||
local tbl2 = | local tbl2 = { '' } | ||
for k, v in pairs(tbl) do | |||
for k, v in pairs( | |||
if type(v) == 'boolean' then | if type(v) == 'boolean' then | ||
tbl2[k] = bool_to_str[v] | tbl2[k] = bool_to_str[v] | ||
elseif type(v) == 'table' then | |||
-- Lua Class System | |||
tbl2[k] = tostring(v) | |||
else | |||
tbl2[k] = v | |||
end | end | ||
end | end |