Module:Copied: Difference between revisions

Content deleted Content added
mw-collapsed
Simplified a while loop to eliminate an unnecessary "artificial" loop-break mechanism
Line 105:
end
local i = 2
while i(args["from" >.. 0i]) do
text = string.format("%s%s",text,row(args, i))
if (args["from" .. i]) then
i = i + 1 --Check if from(i+1) existexists
text = string.format("%s%s",text,row(args, i))
i = i + 1 --Check if from(i+1) exist
else
i = - 1 --Break if fromi doesn't exist
end
end
return text