how do i use 'And' and 'Or' in UnityScript

hey :)

iv come across a small problem.

how do i use 'and' and 'or'?

as in:

if (this == this and this == this){};

or

if (this == this or this == this){};

i tried used the words 'and' and 'or' and they dont do anything XD

i know that | is used in some languages as 'and' but that didnt work either. && didnt work for 'and' either :S

help please?

if(this == this && that == that){};

if(this == this || that == that){};

| is never used for 'and'. || is used for 'or'. && does work for 'and'. & is used for bitwise 'and' operations; | is used for bitwise 'or' operations.