Ternary Operation Article Index for
Ternary
Website Links For
Operation
 

Information About

Ternary Operation




Many programming languages that use ; the general form is ''condition ? op1 : op2''. If ''condition'' is true, the statement evaluates as ''op1''; otherwise, it evaluates as ''op2''.

Though it has been delayed for several years by disagreements over syntax, a ternary operator for Python has been approved as PEP 308 and will be added to the upcoming 2.5 release.


EXTERNAL LINKS