Module:Sandbox/RexxS/GCI08

Revision as of 23:07, 13 December 2017 by imported>RexxS (space)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/RexxS/GCI08/doc

-- Module to demonstrate a simple table for Google-Code-in-2017
--
-- The function 'mum' displays "Hello Mum"
-- The number base for the times-table is passed as parameter "num"
-- If no parameter or a blank parameter or a value less than 2 is passed, use 2

p = {}

p.mum = function(frame)
	local family = {"Dad", "Mum", "Uncle Stan", "Aunty Elsie", "Brian"}
	local msg = ""
	msg = msg .. "Hello " .. family[2] .. "<br>"
	return msg
end

return p