-- global variable
week = 1
function NewDayF()
dow = GetDate(3)
if dow == 1 then
week = week + 1
end
end
Trigger(0, "NewDayF")
I usually do it this way.
Is this supposed to be added at the very top of the code? So that everything happens in order?
New here? I'm Roha — want a quick tour?
-- global variable
week = 1
function NewDayF()
dow = GetDate(3)
if dow == 1 then
week = week + 1
end
end
Trigger(0, "NewDayF")
I usually do it this way.