Re: boolian logic

2008-06-13 Thread cokofreedom
> > if var not in (A, B, C): >do_something() > And this is why I love python. -- http://mail.python.org/mailman/listinfo/python-list

Re: boolian logic

2008-06-13 Thread Roel Schroeven
marc wyburn schreef: HI all, I'm a bit stuck with how to work out boolian logic. I'd like to say if A is not equal to B, C or D: do something. I've tried if not var == A or B or C: and various permutations but can't seem to get my head around it. I'm pretty sure I need to know what is calu

Re: boolian logic

2008-06-13 Thread Gabriel Genellina
En Fri, 13 Jun 2008 06:15:52 -0300, marc wyburn <[EMAIL PROTECTED]> escribió: HI all, I'm a bit stuck with how to work out boolian logic. I'd like to say if A is not equal to B, C or D: do something. I've tried if not var == A or B or C: and various permutations but can't seem to get my

Re: boolian logic

2008-06-13 Thread duncan smith
marc wyburn wrote: HI all, I'm a bit stuck with how to work out boolian logic. I'd like to say if A is not equal to B, C or D: do something. I've tried if not var == A or B or C: and various permutations but can't seem to get my head around it. I'm pretty sure I need to know what is calula

Re: boolian logic

2008-06-13 Thread marc wyburn
On 13 Jun, 10:34, Aidan <[EMAIL PROTECTED]> wrote: > marc wyburn wrote: > > HI all, I'm a bit stuck with how to work outboolianlogic. > > > I'd like to say if A is not equal to B, C or D: > >    do something. > > > I've tried > > > if not var == A or B or C: > > and various permutations but can't s

Re: boolian logic

2008-06-13 Thread Aidan
marc wyburn wrote: HI all, I'm a bit stuck with how to work out boolian logic. I'd like to say if A is not equal to B, C or D: do something. I've tried if not var == A or B or C: and various permutations but can't seem to get my head around it. I'm pretty sure I need to know what is calula

RE: boolian logic

2008-06-13 Thread Andreas Tawn
if a != b and a != c and a != d: doStuff() else: doOtherStuff() Cheers, Drea >HI all, I'm a bit stuck with how to work out boolian logic. > >I'd like to say if A is not equal to B, C or D: > do something. > >I've tried > >if not var == A or B or C: >and various permutations bu