Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(parse a value parameter of '' or ' ' as not being present (previously would parse it as a value of 0)) |
(parse a value parameter of 'N/A' as a valid option, and return 'N/A' as the output instead of a currency value) |
||
Line 323: | Line 323: | ||
if val == '' or val == ' ' then |
if val == '' or val == ' ' then |
||
return |
return |
||
elseif val == 'N/A' then |
|||
return 'N/A' |
|||
end |
end |
||
local status, val = pcall(currency, val) |
local status, val = pcall(currency, val) |