a small question about scripting logic

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

a small question about scripting logic

Post by MURTUMA » 07 Sep 2015 10:45

Is it possible of how it is possible to use IF operator like this: if ("xx" OR "yy AND zz"?

Either only xx should be true or both yy and zz. I have trouble finding correct syntax.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: a small question about scripting logic

Post by colabi » 07 Sep 2015 13:26

if (xx OR (zz AND yy) == true)?

jarlerb
Posts: 10
Joined: 19 Jun 2013 17:48

Re: a small question about scripting logic

Post by jarlerb » 07 Sep 2015 17:08

If xx, yy and zz has the value true or false:
if (xx || (yy && zz))
else:
if (xx== "something" || (yy =="something" && zz=="something"))

Regards, Jarle

Post Reply