IIF (In-line If) Function

FerméDescription

Defines a conditional expression, as well as the expressions to execute depending on the outcome of the conditional expression.

FerméSyntaxe

IIF(ConditionalExpr, ExprIfTrue, ExprIfFalse)

Where:

FerméRemarques

Only one of the two expressions (ExprIfTrue or ExprIfFalse) will get executed each time the IIF function is executed. Either of these expressions can be any valid single line expression, including additional ("nested") IIF functions.

For more detailed information on IIF function, refer to Using the In-line If (IIF) Function.

Rubriques connexes