Module:UtilsVar/Examples/Counter

local p = {}

local utilsVar = require("Module:UtilsVar")

local counter = utilsVar.counter("UtilsVarExample")

function p.Main(frame) local result = "" if counter.value == 0 then result = "Start count\n\n" end counter.increment result = result .. counter.value return result .. "\n" end

return p