Module:Sandbox: Difference between revisions

From Tildeverse Wiki
(Created page with "local M = {} function M.hello(whom) if whom == nil then return 'Hi!' end return Hello, .. whom .. '!' end return M")
 
No edit summary
Line 1: Line 1:
local M = {}
local M = {}


function M.hello(whom)
function M:hello(whom)
if whom == nil then return 'Hi!' end
if whom == nil then return 'Hi!' end
return [[Hello, ]] .. whom .. '!'
return [[Hello, ]] .. whom .. '!'

Revision as of 00:05, 4 June 2021

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

local M = {}

function M:hello(whom)
	if whom == nil then return 'Hi!' end
	return [[Hello, ]] .. whom .. '!'
end

return M