Content deleted Content added
Bromalayan (talk | contribs) No edit summary |
fix nan |
||
Line 218:
local points = win_points*wins + loss_points*losses + s_pts
local win_perc = ''
--Some sports use draw as well▼
if matches == 0 then
-- Escape for zero matches
win_perc = '—'
else
elseif losses > 0 then▼
-- Drop the leading zero (from the string)▼
win_perc =
▲ -- Drop the leading zero (from the string)
win_perc = string.sub(win_perc,2,string.len(win_perc))
end
end
|