Hi,
I can't get the code below to work:
Let>P_Item=35
Random>100,R2
If>R2C:\Rec.txt,Res,Step2
Macro>C:\ItemSearch.scp
Endif
The If statement is never entered, even if R2 is less then or equal to 35. What do I need to do differently?
All help much appreicated
Relational Operators
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 15
- Joined: Wed Feb 15, 2006 2:25 pm
- Location: London
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You are using a complex expression, so you must use the following syntax:
If>{%R2%<=%P_Item%}
If>{%R2%<=%P_Item%}
Last edited by Marcus Tettmar on Tue Feb 21, 2006 11:06 am, edited 2 times in total.
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?
-
- Newbie
- Posts: 15
- Joined: Wed Feb 15, 2006 2:25 pm
- Location: London
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Sorry, yes, my mistake, the variables will need % symbols around them. I have edited my previous reply accordingly.
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?
-
- Newbie
- Posts: 15
- Joined: Wed Feb 15, 2006 2:25 pm
- Location: London
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
See "complex expressions" in the help file. Complex expressions are set between curly braces { .. }. Simple statements have only one operator.
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?