Control Group Strategy Pattern incorrect boolean expression shown in video
In the lesson 'Measure Marketing Effectiveness Using Control Groups', in Segment 4 'Strategy Pattern' video between about 02:04 and 02:20, the boolean expression displayed for deciding whether the control group is inside its validity window contains errors.
In both of the terms containing CurrentDate the arguments to the boolean operator are the wrong way around.
Also the two OR clauses need their precedence raised by wrapping them in brackets.
In boolean algebra (and all computer programming languages that I have used) the boolean operator AND has higher precedence than OR so you need the brackets to make this right.
I believe it should read:
(ControlGroupValidityStart = "" OR CurrentDateTime() >= ControlGroupValidityStart)
AND
(ControlGroupValidityEnd = "" OR ControlGroupValidityEnd >= CurrentDateTime())
(the expression used in the exercise is correct)
I realize this might be a bit arcane for people coming from a marketing background. However people coming from a computing background are just going to be confused.