[Bf-python] Re: Mesh modes

Toni Alatalo antont at kyperjokki.fi
Tue Jan 31 16:41:48 CET 2006


On Tuesday 31 January 2006 16:34, Joseph Gilbert wrote:
> "If the implementation is hard to explain, it's a bad idea"

:)

> for x in list:
> instead you need to test a bunch of boolean values
> if x.y and x.z and x.w and x.p and x.z:

you can always make a list of your vars of interest:

In [120]: a = True; b = False; c = True
In [121]: if False in [a,b,c]: print "hop!"
hop!

~Toni




More information about the Bf-python mailing list