Enumerating Numbers

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
historyman
Newbie
Posts: 3
Joined: Wed Apr 04, 2007 5:22 pm

Enumerating Numbers

Post by historyman » Thu Apr 05, 2007 7:25 pm

I'm having trouble enumerating a variable, as in:

Input>Number,How many records to search ?
Let>WaitTime=(%Number%/10000)*60
// 10000 records searched in a minute
Message>%WaitTime%
Wait>%WaitTime%

When I see WaitTime it shows "30000/10000*60 it does expand it to 180 nor does Wait wait the expected time. What am I missing?

Thanks-
John
We Bring Lancaster Hisatory to the World!
http://www.lancasterhistory.org

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

Post by Marcus Tettmar » Thu Apr 05, 2007 7:42 pm

Your Let statement needs to be:

Let>WaitTime={(%Number%/10000)*60}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
JRL
Automation Wizard
Posts: 3505
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Apr 05, 2007 7:43 pm

Hi John,

See complex expressions in help

You need braces around the expression, it should then provide acceptable results.

Input>Number,How many records to search ?
Let>WaitTime={(%Number%/10000)*60}
// 10000 records searched in a minute
Message>%WaitTime%
Wait>%WaitTime%

Good Luck.

historyman
Newbie
Posts: 3
Joined: Wed Apr 04, 2007 5:22 pm

Post by historyman » Thu Apr 05, 2007 7:45 pm

Thanks, Marcus. Missed that little tid bit - stared at it for an hour and didn't see it.
:oops:

John
We Bring Lancaster Hisatory to the World!
http://www.lancasterhistory.org

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