company logo

Conditional operand case

A conditional operand case checks the condition (first operand) first. When the condition is true, the the second operand will be evaluated end returned. The first operand (condition) is supposed to return a Boolean value. Otherwise, the result will be converted to Boolean.

Definition: 

cond_case  := operand '?' operand ':'