Complex expressions

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Vitol
Newbie
Posts: 2
Joined: Sun Feb 17, 2008 2:04 pm

Complex expressions

Post by Vitol » Sun Feb 17, 2008 2:10 pm

I don't know how I should use logical expressions with "If"

It doesn't works:
-If> (i=0) or (i=10)
-If> (i=0) {or} (i=10)
-If> %i%=0 {or} %i%=10

Can you help me?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Sun Feb 17, 2008 2:58 pm

Let>i=8
IF>{(%i%=0) OR (%i%=10)}
MDL>variable i is 0 or 10
ELSE
MDL>variable i is not 0 or 10
ENDIF

(There's no "-" before the IF>)

Vitol
Newbie
Posts: 2
Joined: Sun Feb 17, 2008 2:04 pm

Post by Vitol » Sun Feb 17, 2008 3:11 pm

Thank you very much :D

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