Jump to content

Module:Sandbox/Colin R Robinson

From WBS
Revision as of 06:05, 26 March 2024 by imported>Colin R Robinson

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

-- Define the module table
local p = {}

-- Function that takes a string and appends an exclamation mark
function p.addExclamation(saying)
    -- Check if saying is not nil or empty
    if saying ~= nil and saying ~= '' then
        return saying .. "!"
    else
        return "Empty input!"
    end
end

-- Return the module table
return p