Next: , Previous: Diagnostics Library, Up: Function Descriptions


7.1.2 Conditionals

— Function: bcond z a b

Conditional expression, for boolean rvalues. If z is true, return a, else return b. NOTE: both expressions a and b are evaluated unconditionally.

— Function: zcond z a b

Conditional expression, for integer rvalues. If z is true, return a, else return b. NOTE: both expressions a and b are evaluated unconditionally.

— Function: rcond z a b

Conditional expression, for floating-point (real) rvalues. If z is true, return a, else return b. NOTE: both expressions a and b are evaluated unconditionally.

— Function: strcond z a b

Conditional expression, for string rvalues. If z is true, return a, else return b. NOTE: both expressions a and b are evaluated unconditionally.

— Function: select index args...

Returns expression args[index], where index is 0-based. Throws run-time exception if index is out-of-range.