Project

General

Profile

Actions

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.

Parameters

Parameter Description
C The expression to check.
T The text to use if the result is $true.
F The text to use if the result is $false.

See also /if.

Example

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

Updated by Per Amundsen over 1 year ago · 2 revisions

Also available in: PDF HTML TXT