[Solved] Cannot mix divide & subtracting in one line?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
ocnuybear
Pro Scripter
Posts: 100
Joined: Sun Jul 15, 2018 5:14 pm

[Solved] Cannot mix divide & subtracting in one line?

Post by ocnuybear » Tue Jul 17, 2018 10:22 am

I have this code:

Code: Select all

Let>L=Xarr_0-(DeltaX/2)
But it only works if there is either subtracting or diving, but not both.
(In dividing I have to remove the brackets also)
Last edited by ocnuybear on Thu Jul 19, 2018 9:05 am, edited 3 times in total.

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

Re: Cannot mix divide & subtracting in one line?

Post by Marcus Tettmar » Tue Jul 17, 2018 5:01 pm

Like this:

Code: Select all

Let>L={%Xarr_0%-(%DeltaX%/2)}
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

ocnuybear
Pro Scripter
Posts: 100
Joined: Sun Jul 15, 2018 5:14 pm

Re: Cannot mix divide & subtracting in one line?

Post by ocnuybear » Wed Jul 18, 2018 4:53 am

Thank you Marcus

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