'IF' Syntax For Alternative Conditions

Leif K-Brooks eurleif at ecritters.biz
Thu Feb 8 05:07:15 CET 2007


rshepard at nospam.appl-ecosys.com wrote:
>   However, I cannot find, nor create by trial-and-error, the syntax for
> alternative conditions that are ORed; e.g.,
> 
> 	if cond1 OR if cond2:
> 	    do_something.

if cond1 or cond2:
     do_something()


More information about the Python-list mailing list