>I think your first statement is not comparing it to anything, so essentially it's looking to see if System.DayOfWeek.Sunday == true, which it is not, so it will always be false.
>
>Your second code sample should work properly.
Thanks
I think the designer should not have allowed it as this is an integer and it accepts a boolean syntax as is.