company logo

Conditional operand

Conditional operands provide a short way of assigning or passing conditional values. A conditional value is selected from a number of case conditions. The value is evaluated from operand the first condition case ( cond_case ), which fulfills the condition.

Conditional values might be passed as parameter or be used within operations or assignments. Wherever being used, they have to be enclosed in ( ... ).

( sex == 'male'   ? 1 :

  sex == 'female' ? 2 :

                    0  )

Definition: 

cond_op  := '(' cond_case(*) operand ')'