Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Sandbox: Difference between revisions

From Tildeverse Wiki
Smlckz (talk | contribs)
Created page with "local M = {} function M.hello(whom) if whom == nil then return 'Hi!' end return Hello, .. whom .. '!' end return M"
 
Smlckz (talk | contribs)
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