Module:Bongolium500/learning: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {}
local p = {}


function p.pipeTest( frame )
function p.error( frame )
arg = frame.args[1]
return nil * 5
if arg == "|" then
local text = "Pipe"
elseif arg == "{!}" then
local text = "Fake Pipe"
end
return text
end
end


return p
return p

Latest revision as of 22:10, 18 February 2023

Lua error at line 4: attempt to perform arithmetic on a nil value.


local p = {}

function p.error( frame )
	return nil * 5
end

return p