imported>Evad37
Created page with 'local e = {} function e.enumArgs(args, base) local i = 1 local enum = {} while true do if args[base .. tostring(i)] ~= nil and args[base .. tostring(i)] ~=...'
 
(No difference)

Latest revision as of 05:07, 15 September 2016

Documentation for this module may be created at Module:Sandbox/Evad37/Enumerate arguments/doc

local e = {}

function e.enumArgs(args, base)
	local i = 1
	local enum = {}
	while true do
		if args[base .. tostring(i)] ~= nil and args[base .. tostring(i)] ~= "" then
			enum[base][i] = args[base .. tostring(i)]
			i = i + 1
		else break
		end
	end
end

return e