Issue with Upper

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Issue with Upper

Post by kpassaur » Wed Nov 05, 2008 3:25 pm

I just upgraded to 10.1.21 and was running a script and it now gives me an error when it comes to this line. It never did before and I have a similar line in numerous scripts.

The error says "Cannot read Script as Boolean"

If>{Upper(%filename%)}=MSPVIEW.EXE,modicheck

Has there been a syntax change?

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

Post by Marcus Tettmar » Wed Nov 05, 2008 3:30 pm

It should be:

If>{Upper(%filename%)="MSPVIEW.EXE"},modicheck

I also prefer to use If / Else / Endif rather than labels.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

upgrade

Post by kpassaur » Wed Nov 05, 2008 4:46 pm

This is what happens when there is an upgrade, people like me have to start using the correct syntax.

Thanks - it now works again. :D

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