Module:Sandbox/RexxSS

From English Wikipedia @ Freddythechick
--this is a comment
--task2

p = {}

function p.CleverName(frame)
	return "Hello World."
end

p.Hi = function(frame)
	anyName = frame.args.name or "Jimbo"
	return "Hello from Lua to my friend " .. anyName .. ".<br>"
end


function p.temperature(frame)
	cel = tonumber(frame.args.celsius) or 0
	fah = cel * 9 / 5 + 32
	if cel > 10 then 
		msg = " it is warm."
	else
		msg = " it is not warm."
	end
	return "The temperature in farenheit is " .. fah .. msg
end

p.times = function(frame)
	local num = tonumber( frame.args.num ) or 2
	local out = num .. "Times table<br>"
	for i = 1, 10 do
		out = out .. i * num .. "<br>"
	end
	return i .. " times " .. num .. " is " .. out
end

return p