WMLScript » Operators » Conditional

Syntax:
? : ;

The conditional operator is used to assign one of two possible values to an expression based upon the results from a boolean test applied to a specified operand.

The conditional operator is used in the following format:

expression = operand1 ? operand2 : operand3;

This operator behaves as follows: