I'm not sure what you're trying to achieve with this statement?

Are you saying :

a) if not (tst[0] != tst[1]) == tst[2]:
b) if not tst[0] == tst[1] or tst[0] == tst[2]:

anyway that's a syntax clue for you...

-Dave


On Tue, Jan 5, 2010 at 8:29 AM, efecto <[email protected]> wrote:

> Hi all, I want to write an 'if' conditional like this
> if not tst[0] == tst[1] == tst[2]:
>    print 'they are not the same'
> else:
>    print 'they are the same'
>
> but it's not correctly written. How would I write this properly?
>
> Thank you.
>
> --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to