'IF' Syntax For Alternative Conditions

Leif K-Brooks eurleif at ecritters.biz
Wed Feb 7 23:07:15 EST 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