Skip to content
#3097
Auto-translated
MasteR


-- 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?