Problem with If Else Endif Statement

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Knoore
Junior Coder
Posts: 28
Joined: Fri Oct 20, 2006 8:30 am

Problem with If Else Endif Statement

Post by Knoore » Thu Dec 14, 2006 9:33 am

Error: Expecting a ')'
Error: 'C' Not appropriate
What is wrong with the script?

Code: Select all

      IF>{(%type% = "ZP") OR (%type% = "FS")}
        IF>{(%filename% <> "%dir%readme.txt") AND (%filename% <> "%dir%Readme.txt") AND (%filename% <> "%dir%report.txt")}
          Gosub>clipboard
        Endif
      Else
        Gosub>clipboard
      Endif

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Dec 14, 2006 10:19 am

Should be:

Code: Select all

      IF>{(%type% = "ZP") OR (%type% = "FS")}
        IF>{(%filename% <> %dir% + "readme.txt") AND (%filename% <> %dir% + "Readme.txt") AND (%filename% <> %dir% + "report.txt")}
          Gosub>clipboard
        Endif
      Else
        Gosub>clipboard
      Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts