weird problem with "if"

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
sboy
Newbie
Posts: 1
Joined: Wed Oct 08, 2008 3:57 pm

weird problem with "if"

Post by sboy » Wed Oct 08, 2008 4:10 pm

I really need your help.
I just tried this software but it seems I cant get a simple "if" work.

GetClipBoard>Clip1
len>Clip1,LN
// whatever the value is in LN does not matter because it falls to an
//infinite loop every time regardless to the value in LN
If LN=7,UJCIKK
if LN=11,LETEZOCIKK
if LN=2,VEGE
if {LN2 or LN7 or LNMainloop

but somehow in the defrag sample works the same way what is wrong?
I've tried to do it with the endif method but it runs every single line via debug regardless the values! i dont get it.

like:
let>x=4
if x=5
exit
endif
its still gonna exit somehow please help.
I really need it to work.

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 Oct 08, 2008 4:12 pm

Here's the syntax of "If" taken straight from the help file:

If>expression[,true_label_name[,false_label_name]]

statements

[ [Else

else statements]

Endif ]

E.g.:

If>LN=7
Goto>some_label
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