Skip to content
User Avatar
#3857
Auto-translated
}{0TT@6bI4
I think you'll understand everything if I tell you this: your weeks, considering every other one, form a cyclic group of order 2, isomorphic to the group of residues modulo two.
In short, if the remainder when dividing the week number by two is two, and the day of the week is Monday, then....
Thank you! Actually, I figured it out myself... I just sat down and calculated how many weeks there are in a month (4), and then wrote this code:
if (( GetDate(WEEK) == 2 ) or ( GetDate(WEEK) == 4 )) and ( GetDate(DAY_OF_WEEK) == 1 ) then

And now everything works as it should.

Statistics

Welcome our newest member: artem