expression

Post your questions and help other users.

Moderator: Martin

Post Reply
artpc
Posts: 12
Joined: 02 Jul 2013 11:59

expression

Post by artpc » 27 Sep 2013 12:21

global_tryb_telefonu NOT "Praca";
global_tryb_telefonu OR "Praca";

When use NOT in expression it make red color.
It's bug?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: expression

Post by Martin » 27 Sep 2013 13:10

Hi,

NOT is an unary operator for things like this:
a=true;
b=NOT a;

Use the == operator to compare two values in a condition:
global_abc == "test";
or
global_abc != "test";

...or in a script with an assignment to a variable result:
result = global_abc == "test";
log(result);

I will clarify the documentation and add an example for the NOT operator.

Regards,
Martin

artpc
Posts: 12
Joined: 02 Jul 2013 11:59

Re: expression

Post by artpc » 27 Sep 2013 13:37

Thanks Martin.

Post Reply