"Peter Otten" <__peter__ at web.de> wrote in message news:gdo5nh$eio$03$1 at news.t-online.com... >> How do I do in Python? > if condition1 and condition2: # && > doThis > elif condition3 or condition4: # || > doThat > See the pattern? if condition1 and condition2: doThis elif condition3 or condition4: doThat