Module:Calculator/ItemEconomy: Difference between revisions

m
Fix nil handling of input parameter
(First version)
 
m (Fix nil handling of input parameter)
Line 8: Line 8:


local function parseEconomy(eco)
local function parseEconomy(eco)
if eco == nil then
return ECOOUT
end
if eco:upper() == ECOIN then
if eco:upper() == ECOIN then
         return ECOIN
         return ECOIN
     elseif inputString:upper() == ECOOUT then
     elseif eco:upper() == ECOOUT then
         return ECOOUT
         return ECOOUT
     end
     end
2,875

edits