2 Replies Latest reply: Jun 14, 2012 2:02 AM by Marcus Dinsdale RSS

    WeekDay() created as variable in script

      Hey guys,


      I’ve been playing around with WeekDay(now()) in my incremental loader script for qvds as we’re trying to perform full reloads every Sunday.


      Previously I was using:

      LET vDayOfWeek = WeekDay(now());

      IF $(vDayOfWeek) = 'Sun' THEN


      This returns false, however when I use:

      IF WeekDay(now()) = 'Sun' THEN


      And suddenly it works. I'm just curious as to why this happens, Is there any reason it wouldn't be working as a variable?