Editing Module:Param Parse
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 464: | Line 464: | ||
end |
end |
||
val = tonumber(val) -- Intentionally do not use parse.tonumber here |
val = tonumber(val) -- Intentionally do not use parse.tonumber here |
||
if val == nil then |
|||
return nil |
|||
end |
|||
if val >= 0 and val <= 5 and math.floor(val) == val then |
if val >= 0 and val <= 5 and math.floor(val) == val then |
||
return val |
return val |