Module:MLB standings/sandbox: Difference between revisions

Content deleted Content added
change default value for year parameter to 0
flip test to improve readability (more evident that year must be within the specified range)
Line 191:
end
for idx, wildCardInfo in ipairs(mlbData.wildCardInfo) do
if wildCardInfo.startYear <= year and wildCardInfo.endYearyear ><= yearwildCardInfo.endYear then
return wildCardInfo.wildCardsPerLeague;
end