If you want boolean OR, you should use 'or'. The pipe is a bitwise
operator, and it logically ORs the two bit-strings. Same thing with
ampersand, which is the bitwise AND.
Mateja
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Mar 31, 2006, at 10:46 AM, Don Arbow wrote:
> On Mar 31, 2006, at 8:05 AM, sam wrote:
>> I was trying complex Q and notices if I do:
>>
>> complex=(Q1 | Q2)
>>
>> and
>>
>> complex = (Q1 or Q1)
>>
>> the results are not the same. I got right result using "or" but not
>> with "|". Is this a bug
On Mar 31, 2006, at 8:05 AM, sam wrote:
> I was trying complex Q and notices if I do:
>
> complex=(Q1 | Q2)
>
> and
>
> complex = (Q1 or Q1)
>
> the results are not the same. I got right result using "or" but not
> with "|". Is this a bug or I did something wrong? What is the
> difference between
I was trying complex Q and notices if I do:
complex=(Q1 | Q2)
and
complex = (Q1 or Q1)
the results are not the same. I got right result using "or" but not
with "|". Is this a bug or I did something wrong? What is the
difference between these two operators?
--~--~-~--~~---
4 matches
Mail list logo