Site Notice

hello, world

Difference between revisions of "Module:Variable"

From Project-EPB Commons
(Created page with "local p = {} variable = variable or 1 function p.main() return variable end variable = variable + 1 return p")
 
Line 4: Line 4:
  
 
function p.main()
 
function p.main()
return variable
+
local n = variable
 +
variable = variable + 1
 +
return n
 
end
 
end
 
variable = variable + 1
 
  
 
return p
 
return p

Revision as of 01:55, 29 October 2020

{{#invoke:variable|main}}{{#invoke:variable|main}}{{#invoke:variable|main}}

1 1 1


local p = {}

variable = variable or 1

function p.main()
	local n = variable
	variable = variable + 1
	return n
end

return p