2 Replies Latest reply on Mar 31, 2016 2:32 PM by erolst

    Question Regarding IF script step

    StanW

      Hi

       

      I am trying to get a start-up script to automatically run every Monday when a database opens. It seems to me this should work, but MY SCRIPT always runs regardless of the day of the week name. Below is my script. How can I get MY SCRIPT to only run on Mondays?

       

      If [DayName ( Get ( CurrentDate ) = "Monday" )]

        Perform Script ["MY SCRIPT"]

      End If

       

      Thank you.