Module:Sandbox/Slashme

--LUA test --Task 2

p = {}

function p.sandbox1(frame) return "JMSP" end

p.Hi = function(frame) strName = frame.args.name or "Dave" return "Hello from Lua to my friend " .. strName .. ". " end

p.temperature = function(frame) cel = tonumber(frame.args.celsius) or 0 fah = cel*9/5+32 if cel*1 > 10 then msg = " It is warm." else msg = " It is not warm." end return cel .. "°C is " .. fah .. "°F." .. msg end

return p