?: (Conditional block) (Operator/conditional)

Conditionally executes one code branch or another. Otherwise known as the Ternary operator.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server- 2.0
Opera - 3.0
Property/method value type:Depends on arguments

See also:if( ... ) ..., if( ... ) ... else ...

Refer to:

Conditionally execute (?:)

Cross-references:

ECMA 262 edition 2 - section - 11.12

ECMA 262 edition 3 - section - 11.12