Hi Paul. I had a small problem in other part of a script, and the
conditional did work after fixing the problem!

On Jan 6, 5:33 am, Paul Molodowitch <[email protected]> wrote:
> Actually, efecto, did you ever actually test your original code? It should
> work fine... python is able to handle a==b==c syntax.
>
> For clarity, you might want to write
>   not (a==b==c)
> ... but it's not strictly neccessary.
>
> - Paul
>
> On Tue, Jan 5, 2010 at 1:32 AM, efecto <[email protected]> wrote:
> > ouch. why didn't I think of that..
>
> > Thank you for your help!
>
> > On Jan 5, 10:27 pm, viktoras <[email protected]> wrote:
> > > to test if values are all the same (a=b=c , as you would write in math
> > > class), you just need to test
>
> > > if a==b and b==c:
> > >     print "all three are the same value"
> > > else:
> > >    print "not all of them are of the same value"
>
> > --
> >http://groups.google.com/group/python_inside_maya
>
>
-- 
http://groups.google.com/group/python_inside_maya

Reply via email to