-- Kinkenan Google Code-In 2019, Introduction to Lua in Wikipedia-- Kinkenan Google Code-In 2019, Introduction to Lua in Wikipedialocal p =
function p.hello(frame) return "Hello, world!"endp.Hi = function(frame) strName = frame.args.name or "Jimmy" return "Hello from Lua to my friend " .. strName .. ".
"end
function p.converttemp(frame) local cels = tonumber(frame.args.celsius) or 0 local fahr = cels * 9 / 5 + 32 msg = cels .. " degrees Celsius is " .. fahr .. " degrees Fahrenheit." if (cels > 9) then msg = msg .. " It's Warm" else msg = msg .. " It's Cold" end return msgendreturn p