Implemented ternary expression.

Implemented ternary expression.