Calculation clarification

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

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

Calculation clarification

Post by Knoore » Fri Oct 20, 2006 8:32 am

wait>2
Let>aantal=2
Let>metingen=3
Let>temptijd=2
send>temptijd
Press Enter
Let>temptijd=(temptijd+(aantal*4*20))
send>temptijd
Press Enter

This is the display:
2
(temptijd+(aantal*4*20))

Why doesnt it just calculate?

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

Post by Marcus Tettmar » Fri Oct 20, 2006 9:04 am

You want:

wait>2
Let>aantal=2
Let>metingen=3
Let>temptijd=2
send>temptijd
Press Enter
Let>temptijd={(%temptijd%+(%aantal%*4*20))}
send>temptijd
Press Enter
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
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Oct 20, 2006 1:57 pm

That correct syntax is shown in the Help documentation.

So this is not a "bug" and Subject Title is misleading.

Could create wrong signal to those who do not know the product and the excellent support.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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