This indicates that the check being performed refers to the shop, not any particular question.
These operators check the shop date or day of week. For the date checks, the date should be entered in single or double quotes in the format YYYY-MM-DD; for example:
ifQ() .dateIs('2011-12-25') // if the shop was performed on December 25, 2011
Days of the week can be entered as the full day name in single or double quotes ('Monday'), the three-letter abbreviation in single or double quotes ('Mon'), or a numeric value (0 to 6, where 0 is Sunday and 6 is Saturday):
ifQ() .dayIs('Monday') // if the shop was performed on a Monday
.dateIs
One date string
Condition will return true is the Shop Date matches the date given. Argument should be in format yyyy-mm-dd.
ifQ() .dateIs('2009-12-25') .setError("Was the bank really open on Christmas Day?");
.dateNot
One date string
Condition will return true is the Shop Date does not match the date given. Argument should be in format yyyy-mm-dd.
ifQ() .dateNot("2009-07-04") .disappear(Section(2));
.dateBefore
One date string
Condition will return true is the Shop Date is earlier than the date given. Argument should be in format yyyy-mm-dd.
ifQ() .dateBefore('2010-01-01') .appear(Section(8));
.dateAfter
One date string
Condition will return true is the Shop Date is later than the date given. Argument should be in format yyyy-mm-dd.
ifQ() .dateAfter('2010-01-01') .appear(Section(7));
.dayIs
One mixed variable; weekday, weekday abbreviation, or numeric index
Condition will return true is the Shop Date occurs on the week day given. Argument should be weekdays 'Sunday' through 'Saturday' whole or in a 3 letter abbreviation. Numbers are also accepted where 0 = Sunday through 6 = Saturday.
ifQ() .dayIs('Sunday') .setError("Was the bank really open on Sunday?");
// these could also be used
// .dayIs(0)
// .dayIs('Sun')
// .dayIs('sunday')
.dayNot
One mixed variable; weekday, weekday abbreviation, or numeric index
Condition will return true is the Shop Date occurs on a week day other than the one given. Argument be weekdays 'Sunday' through 'Saturday' whole or in a 3 letter abbreviation. Numbers are also accepted where 0 = Sunday through 6 = Saturday.
ifQ() .dayNot('Monday') .setError("BBQ Special in Monday only!");
// these could also be used
// .dayNot(0)
// .dayNot('Sun')
// .dayNot('sunday')