Page 1 of 1
expression
Posted: 27 Sep 2013 12:21
by artpc
global_tryb_telefonu NOT "Praca";
global_tryb_telefonu OR "Praca";
When use NOT in expression it make red color.
It's bug?
Re: expression
Posted: 27 Sep 2013 13:10
by Martin
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
Re: expression
Posted: 27 Sep 2013 13:37
by artpc
Thanks Martin.