Content deleted Content added
←Created page with '--this is a comment --task2 p = {} function p.CleverName(frame) return "Hello World." end p.Hi = function(frame) anyName = frame.args.name return "Hello fr...' |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 9:
p.Hi = function(frame)
anyName = frame.args.name or ""
return "Hello from Lua to my
end
p.temperature = function(frame)
cel = tonumber(frame.args.celsius) or 0
fah = cel * 9 / 5 + 32
if cel > 20 then
msg = " It is warm"
else
msg = " It's not that warm."
end
return "The temperature in fahrenheit is " .. fah .. "°F." .. msg
end
|