Dear,

Lonkero, you are right it has to deal with the precendence and order of evaluation of operators

Following tabel is an extraction for C language. Language which Ruud is using for KiXtart.

code:
() [] 
not
* /
+ -
shift_left shift_right (bitwise operations)
< <= > =>
= <>
bitwise_and (bitwise operations)
bitwise_exclusive_or (XOR) (bitwise operations)
bitwise_inclusive_or (NOR) (bitwise operations)
and
or

They are evaluating from left to right.
To be sure you doesn't have problems with evaluations use at the right place
parenthesis.
Your examples with parenthesis looks like:
- ((1) and (0)) -> 0
- (not (0 and not (1))) -> 1
- (not 0) and (not 1) -> 0
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA