substitute for c/java's ?:

Jochen Riekhof jochen at riekhof.de
Thu Jun 14 11:38:33 EDT 2001


> result=iif(option,value1,value2)

oh, this is visual basic (should I have said this? ;-). Good idea, drawback
is it has the same disadvantage as the
tuple method in that it does evaluate both values first (btw exactly what VB
does, too).

Ciao

...Jochen







More information about the Python-list mailing list