While command

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

While command

Post by hoangvo81 » Mon Mar 04, 2013 8:34 pm

Something interesting to review:

let>a=0
let>b=0
while>{(%a%a,1
while>{(%b%b,1
endWhile
EndWhile

MDL>%a% %b%


The above will result in 10 and 10

let>a=0
let>b=0
while {(%a%a,1
while {(%b%b,1
endWhile
EndWhile

mdL>%a% %b%



The above also result in 10 and 10



let>a=0
let>b=0
while{(%a%a,1
while{(%b%b,1
endWhile
EndWhile

mdl>%a% %b%


The above result in 0 0

just something interesting with the while command having a space instead of > result the same, but if you take out the space it never made it into the loop.

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

Post by Marcus Tettmar » Tue Mar 05, 2013 9:11 am

As documented the correct syntax is:

while>{(%a% is used between command and value.

Nothing else is supported. You may find something else works or does not work but don't count on it as it will be unsupported.
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
Sign up to our newsletter for free automation tips, tricks & discounts