From Wikipedia, the free encyclopedia
Jump to navigation
Jump to search
local p = {}
function p.main(frame)
x = tonumber(frame.args.x) or 0
local msg = ""
if x < 0 then
msg = "negative"
elseif x == 0 then
msg = "zero"
else
msg = "positive"
end
return msg
end
return p