Some extremely simple idea seems not to work, or I dont understand the proper syntax here.
Imagine we have two simple programs. The first one see the statement as true, what is really wrong (0+0 is not > 0). The second one see the statement as false, what is true. Where is my problem? We are not able to have calculations inside if? But it seems some of them works ...
Let>a=0
Let>b=0
If>%a%+%b%>0
Message>OK
Wait>2
Endif
Let>a=0
Let>b=0
Let>c=%a%+%b%
If>c>0
Message>OK
Wait>2
Endif
Calculations inside IF statement
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Calculations inside IF statement
The syntax you want is:
If>{%a%+%b%>0}
...
Endif
If>{%a%+%b%>0}
...
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Calculations inside IF statement
Thank you, tried If>{%a%+%b%}>0 and If>(%a%+%b%)>0 with no luck. Now will now the problem was syntax.Marcus Tettmar wrote:The syntax you want is:
If>{%a%+%b%>0}
...
Endif