Module:Bongolium500/learning: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "local p = {} --p stands for package function p.hello( frame ) return "Hello, world!" end return p")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {} --p stands for package
local p = {}


function p.hello( frame )
function p.error( frame )
    return "Hello, world!"
return nil * 5
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