Hi David, I was meaning that if A,B and C are not equal then print
'they are not the same'. I thought python would allow something like
if not A == B == C:

or
is this the line I want to write?
if not A == B or B == C or A == C:
??

Thanks.

On Jan 5, 10:18 pm, David Moulder <[email protected]> wrote:
> 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