Added in 1.9.0

$iif(C,T,F)

Returns T or F depending on whether the evaluation of the Conditional C is true or false.

See also /if.

Example

; Print 'yes' or 'no' depending if 1 equals 2.
//echo -ag $iif(1 == 2, yes, no)