Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
Fixed step ratio parse function (returns nil if no ratios were entered)
Line 25: Line 25:
table.insert(step_ratios, ratio)
table.insert(step_ratios, ratio)
end
end
return step_ratios
-- Return nil if the size is zero (meaning nothing was entered or parsable)
if loop_limit == 0 then
return nil
else
return step_ratios
end
end
end